diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-10 15:09:53 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-10 15:09:53 +0300 |
commit | 2fc802367acd63b86fecda92461d63d029d7378c (patch) | |
tree | 458f70c00d0b4fe9624122f7438145ecfb192ef6 /CMakeLists.txt | |
parent | d2884d9ea436eda4138a6fbba0ab829e56472c3c (diff) |
MSYS: Don't install static libraries
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 557c829d..cd1a3733 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -15,8 +15,10 @@ option (ENABLE_RESOURCE_EMBED "Embed resources inside the executable" OFF) | |||
15 | include (BuildType.cmake) | 15 | include (BuildType.cmake) |
16 | include (Embed.cmake) | 16 | include (Embed.cmake) |
17 | if (NOT EXISTS ${CMAKE_SOURCE_DIR}/lib/the_Foundation) | 17 | if (NOT EXISTS ${CMAKE_SOURCE_DIR}/lib/the_Foundation) |
18 | set (INSTALL_THE_FOUNDATION YES) | ||
18 | find_package (the_Foundation REQUIRED) | 19 | find_package (the_Foundation REQUIRED) |
19 | else () | 20 | else () |
21 | set (INSTALL_THE_FOUNDATION NO) | ||
20 | set (TFDN_STATIC_LIBRARY ON CACHE BOOL "") | 22 | set (TFDN_STATIC_LIBRARY ON CACHE BOOL "") |
21 | set (TFDN_ENABLE_INSTALL OFF CACHE BOOL "") | 23 | set (TFDN_ENABLE_INSTALL OFF CACHE BOOL "") |
22 | set (TFDN_ENABLE_TESTS OFF CACHE BOOL "") | 24 | set (TFDN_ENABLE_TESTS OFF CACHE BOOL "") |
@@ -183,11 +185,10 @@ if (MSYS) | |||
183 | if (NOT ENABLE_RESOURCE_EMBED) | 185 | if (NOT ENABLE_RESOURCE_EMBED) |
184 | install (FILES ${EMB_BIN} DESTINATION .) | 186 | install (FILES ${EMB_BIN} DESTINATION .) |
185 | endif () | 187 | endif () |
186 | install (PROGRAMS | 188 | install (PROGRAMS ${SDL2_LIBDIR}/SDL2.dll DESTINATION .) |
187 | ${SDL2_LIBDIR}/SDL2.dll | 189 | if (INSTALL_THE_FOUNDATION) |
188 | $<TARGET_FILE:the_Foundation::the_Foundation> | 190 | install (PROGRAMS $<TARGET_FILE:the_Foundation::the_Foundation> DESTINATION .) |
189 | DESTINATION . | 191 | endif () |
190 | ) | ||
191 | elseif (UNIX AND NOT APPLE) | 192 | elseif (UNIX AND NOT APPLE) |
192 | set_target_properties (app PROPERTIES | 193 | set_target_properties (app PROPERTIES |
193 | INSTALL_RPATH_USE_LINK_PATH YES | 194 | INSTALL_RPATH_USE_LINK_PATH YES |