mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-22 16:27:49 +08:00
b565987e5c
* [libxlsxwriter] Add new port * [libxlsxwriter]Re-generate patch file and fix build error in linux.
42 lines
1.4 KiB
Diff
42 lines
1.4 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index fe566fe..e76ed46 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -306,31 +306,11 @@ endif()
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
-if(MSVC)
|
|
- if(CMAKE_CL_64)
|
|
- set(MSVC_FOLDER_PREFIX x64)
|
|
- else()
|
|
- set(MSVC_FOLDER_PREFIX Win32)
|
|
- endif()
|
|
-
|
|
- install(TARGETS ${PROJECT_NAME}
|
|
- LIBRARY DESTINATION "lib/${MSVC_FOLDER_PREFIX}/\${CMAKE_INSTALL_CONFIG_NAME}"
|
|
- ARCHIVE DESTINATION "lib/${MSVC_FOLDER_PREFIX}/\${CMAKE_INSTALL_CONFIG_NAME}"
|
|
- RUNTIME DESTINATION "bin/${MSVC_FOLDER_PREFIX}/\${CMAKE_INSTALL_CONFIG_NAME}"
|
|
- )
|
|
- if (NOT BUILD_SHARED_LIBS)
|
|
- install(FILES ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.pdb
|
|
- DESTINATION "lib/${MSVC_FOLDER_PREFIX}/\${CMAKE_INSTALL_CONFIG_NAME}"
|
|
- )
|
|
- endif()
|
|
-
|
|
-else(MSVC)
|
|
- install(TARGETS ${PROJECT_NAME}
|
|
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
- )
|
|
-endif(MSVC)
|
|
+install(TARGETS ${PROJECT_NAME}
|
|
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
+)
|
|
install(FILES include/xlsxwriter.h DESTINATION include)
|
|
install(DIRECTORY include/xlsxwriter
|
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|