From 92f8d57227feb94643378ecf595626c60c0f59b8 Mon Sep 17 00:00:00 2001 From: Petr Mrázek Date: Sat, 27 Jan 2018 02:41:07 +0100 Subject: fix cmake install command to not install .a files on windows --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dfad5e650f..b45655c4a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,7 +48,11 @@ target_include_directories(${NBT_NAME} PUBLIC include ${CMAKE_CURRENT_BINARY_DIR # Install it if(DEFINED NBT_DEST_DIR) - install(TARGETS ${NBT_NAME} DESTINATION ${NBT_DEST_DIR}) + install( + TARGETS ${NBT_NAME} + RUNTIME DESTINATION ${LIBRARY_DEST_DIR} + LIBRARY DESTINATION ${LIBRARY_DEST_DIR} + ) endif() if(NBT_USE_ZLIB) -- cgit 0.0.5-2-1-g0f52