mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 20:39:13 +08:00
47 lines
1.9 KiB
Diff
47 lines
1.9 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 3fd9d70..0debb89 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -397,11 +397,11 @@ endif ()
|
|
# ----------------------------------------------------------------------------
|
|
# installation directories
|
|
if (OS_WINDOWS)
|
|
- set (RUNTIME_INSTALL_DIR Bin)
|
|
- set (LIBRARY_INSTALL_DIR Lib)
|
|
- set (INCLUDE_INSTALL_DIR Include)
|
|
- set (CONFIG_INSTALL_DIR CMake)
|
|
- set (PKGCONFIG_INSTALL_DIR)
|
|
+ set (RUNTIME_INSTALL_DIR "bin")
|
|
+ set (LIBRARY_INSTALL_DIR "lib")
|
|
+ set (INCLUDE_INSTALL_DIR "include")
|
|
+ set (CONFIG_INSTALL_DIR "share/${PACKAGE_NAME}")
|
|
+ set (PKGCONFIG_INSTALL_DIR "")
|
|
else ()
|
|
set (RUNTIME_INSTALL_DIR bin)
|
|
# The LIB_INSTALL_DIR and LIB_SUFFIX variables are used by the Fedora
|
|
@@ -501,14 +501,22 @@ configure_file (cmake/version.cmake.in "${PROJECT_BINARY_DIR}/${PACKAGE_NAME}-co
|
|
if (BUILD_SHARED_LIBS AND INSTALL_SHARED_LIBS)
|
|
foreach (opts IN ITEMS "" _nothreads)
|
|
if (BUILD_gflags${opts}_LIB)
|
|
- install (TARGETS gflags${opts}_shared DESTINATION ${LIBRARY_INSTALL_DIR} EXPORT ${EXPORT_NAME})
|
|
+ install (TARGETS gflags${opts}_shared
|
|
+ EXPORT ${EXPORT_NAME}
|
|
+ RUNTIME DESTINATION ${RUNTIME_INSTALL_DIR}
|
|
+ LIBRARY DESTINATION ${LIBRARY_INSTALL_DIR}
|
|
+ ARCHIVE DESTINATION ${LIBRARY_INSTALL_DIR})
|
|
endif ()
|
|
endforeach ()
|
|
endif ()
|
|
if (BUILD_STATIC_LIBS AND INSTALL_STATIC_LIBS)
|
|
foreach (opts IN ITEMS "" _nothreads)
|
|
if (BUILD_gflags${opts}_LIB)
|
|
- install (TARGETS gflags${opts}_static DESTINATION ${LIBRARY_INSTALL_DIR} EXPORT ${EXPORT_NAME})
|
|
+ install (TARGETS gflags${opts}_static
|
|
+ EXPORT ${EXPORT_NAME}
|
|
+ RUNTIME DESTINATION ${RUNTIME_INSTALL_DIR}
|
|
+ LIBRARY DESTINATION ${LIBRARY_INSTALL_DIR}
|
|
+ ARCHIVE DESTINATION ${LIBRARY_INSTALL_DIR})
|
|
endif ()
|
|
endforeach ()
|
|
endif ()
|