diff options
| author | Petr Mrázek <peterix@gmail.com> | 2018-01-27 02:41:07 +0100 |
|---|---|---|
| committer | Petr Mrázek <peterix@gmail.com> | 2018-01-27 02:41:07 +0100 |
| commit | 92f8d57227feb94643378ecf595626c60c0f59b8 (patch) | |
| tree | e429370abb01d37ab5fdcdd50029b03b9fb5e15d | |
| parent | c3ec5b3bc76f63c0de93d29077e3fc67e6222795 (diff) | |
| download | Project-Tick-92f8d57227feb94643378ecf595626c60c0f59b8.tar.gz Project-Tick-92f8d57227feb94643378ecf595626c60c0f59b8.zip | |
fix cmake install command to not install .a files on windows
| -rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
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) |
