From 279ac7c5e8cbb24a33a51e69c8c5de1b0c6e4a6e Mon Sep 17 00:00:00 2001 From: Bryan Bernhart Date: Tue, 5 Jul 2022 12:31:53 -0700 Subject: [PATCH] Specify CMake install path by artifact kind. vcpkg expects DLLs to be installed under bin, not lib. This change specifies the destination per artifact kind instead of always using lib. Add support for building through CMakelist #386 --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 25dd0a72e..e741d6c8a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -144,7 +144,7 @@ target_link_libraries(gpgmm_common_config INTERFACE gpgmm_public_config) # Compile definitions for the common config if (GPGMM_ALWAYS_ASSERT) - target_compile_definitions(gpgmm_common_config INTERFACE "GPGMM_ENABLE_ASSERTS") + target_compile_definitions(gpgmm_common_config INTERFACE "GPGMM_ENABLE_ASSERTS") else() target_compile_definitions(gpgmm_common_config INTERFACE $<$:GPGMM_ENABLE_ASSERTS> @@ -212,4 +212,8 @@ endif() # ############################################################################### # Install GPGMM # ############################################################################### -install(TARGETS gpgmm DESTINATION lib) +install(TARGETS gpgmm + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +)