mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 05:48:25 +08:00
44 lines
1.4 KiB
Diff
44 lines
1.4 KiB
Diff
diff --git a/doc/example/src/CMakeLists.txt b/doc/example/src/CMakeLists.txt
|
|
index b5e211e..2a92a1a 100644
|
|
--- a/doc/example/src/CMakeLists.txt
|
|
+++ b/doc/example/src/CMakeLists.txt
|
|
@@ -18,7 +18,7 @@ target_link_libraries(main money)
|
|
|
|
install(TARGETS money
|
|
RUNTIME DESTINATION bin
|
|
- LIBRARY DESTINATION lib
|
|
- ARCHIVE DESTINATION lib)
|
|
+ LIBRARY DESTINATION lib/manual-link
|
|
+ ARCHIVE DESTINATION lib/manual-link)
|
|
|
|
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/money.h DESTINATION include)
|
|
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
|
|
index e6346dd..8f5762a 100644
|
|
--- a/lib/CMakeLists.txt
|
|
+++ b/lib/CMakeLists.txt
|
|
@@ -70,3 +70,8 @@ set(HEADERS libcompat.h)
|
|
|
|
add_library(compat STATIC ${SOURCES} ${HEADERS})
|
|
|
|
+install(TARGETS compat
|
|
+ RUNTIME DESTINATION bin
|
|
+ LIBRARY DESTINATION lib/manual-link
|
|
+ ARCHIVE DESTINATION lib/manual-link
|
|
+)
|
|
\ No newline at end of file
|
|
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
|
index 37fcaf8..334fc9c 100644
|
|
--- a/src/CMakeLists.txt
|
|
+++ b/src/CMakeLists.txt
|
|
@@ -180,8 +180,8 @@ target_include_directories(checkShared
|
|
|
|
install(TARGETS check checkShared
|
|
EXPORT check-targets
|
|
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/manual-link
|
|
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/manual-link
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
|
)
|