mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
|
index b3f376c..8e6d06a 100644
|
|
--- a/src/CMakeLists.txt
|
|
+++ b/src/CMakeLists.txt
|
|
@@ -60,7 +60,10 @@ if(NATS_BUILD_LIB_SHARED)
|
|
target_include_directories(nats PUBLIC
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
|
$<INSTALL_INTERFACE:include>)
|
|
- install(TARGETS nats EXPORT cnats-targets DESTINATION ${NATS_LIBDIR})
|
|
+ install(TARGETS nats EXPORT cnats-targets
|
|
+ ARCHIVE DESTINATION lib
|
|
+ LIBRARY DESTINATION lib
|
|
+ RUNTIME DESTINATION bin)
|
|
install(EXPORT cnats-targets
|
|
NAMESPACE cnats::
|
|
FILE cnats-targets.cmake
|
|
@@ -72,7 +75,10 @@ if(NATS_BUILD_LIB_STATIC)
|
|
target_include_directories(nats_static PUBLIC
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
|
$<INSTALL_INTERFACE:include>)
|
|
- install(TARGETS nats_static EXPORT cnats-targets ARCHIVE DESTINATION ${NATS_LIBDIR})
|
|
+ install(TARGETS nats_static EXPORT cnats-targets
|
|
+ ARCHIVE DESTINATION lib
|
|
+ LIBRARY DESTINATION lib
|
|
+ RUNTIME DESTINATION bin)
|
|
install(EXPORT cnats-targets
|
|
NAMESPACE cnats::
|
|
FILE cnats-targets.cmake
|