diff options
author | LaG1924 <lag1924@gmail.com> | 2021-07-04 16:35:34 +0200 |
---|---|---|
committer | LaG1924 <lag1924@gmail.com> | 2021-07-04 16:35:34 +0200 |
commit | a04d6679257bd89c0f6fa0ddd6399eba09485171 (patch) | |
tree | 48ca2d39a4da46ea50bd0e67f4e5a7caa8ce653f /CMakeLists.txt | |
parent | Merge pull request #66 from LaG1924/ftr/more-rmlui (diff) | |
download | AltCraft-a04d6679257bd89c0f6fa0ddd6399eba09485171.tar AltCraft-a04d6679257bd89c0f6fa0ddd6399eba09485171.tar.gz AltCraft-a04d6679257bd89c0f6fa0ddd6399eba09485171.tar.bz2 AltCraft-a04d6679257bd89c0f6fa0ddd6399eba09485171.tar.lz AltCraft-a04d6679257bd89c0f6fa0ddd6399eba09485171.tar.xz AltCraft-a04d6679257bd89c0f6fa0ddd6399eba09485171.tar.zst AltCraft-a04d6679257bd89c0f6fa0ddd6399eba09485171.zip |
Diffstat (limited to '')
-rw-r--r-- | CMakeLists.txt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 12ae824..7d703cd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,8 +48,8 @@ CPMAddPackage( VERSION 2.0.14 GIT_TAG release-2.0.14 OPTIONS - "SDL_SHARED ON" - "SDL_STATIC OFF" + "SDL_SHARED OFF" + "SDL_STATIC ON" ) @@ -89,7 +89,7 @@ if(SDL2_net_ADDED) file(GLOB SDL2_net_sources ${SDL2_net_SOURCE_DIR}/*.c) list(REMOVE_ITEM SDL2_net_sources "${SDL2_net_SOURCE_DIR}/chatd.c") add_library(SDL2_net STATIC ${SDL2_net_sources}) - target_link_libraries(SDL2_net SDL2) + target_link_libraries(SDL2_net SDL2-static) IF (WIN32) target_link_libraries(SDL2_net ws2_32 iphlpapi) ENDIF() @@ -102,8 +102,8 @@ CPMAddPackage( GITHUB_REPOSITORY madler/zlib VERSION 1.2.11 ) -target_include_directories(zlib PUBLIC ${zlib_SOURCE_DIR}) -target_include_directories(zlib PUBLIC ${zlib_BINARY_DIR}) +target_include_directories(zlibstatic PUBLIC ${zlib_SOURCE_DIR}) +target_include_directories(zlibstatic PUBLIC ${zlib_BINARY_DIR}) CPMAddPackage( @@ -181,17 +181,17 @@ target_link_libraries(AltCraft easyloggingpp libglew_static nlohmann_json::nlohmann_json - SDL2 + SDL2-static SDL2main SDL2_net OptickCore - zlib + zlibstatic sol2 RmlLua RmlDebugger ) -set_target_properties(AltCraft SDL2 OptickCore zlib PROPERTIES +set_target_properties(AltCraft OptickCore PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} ) |