diff options
author | TheLastRar <TheLastRar@users.noreply.github.com> | 2022-10-29 21:58:08 +0100 |
---|---|---|
committer | TheLastRar <TheLastRar@users.noreply.github.com> | 2022-11-04 18:11:39 +0000 |
commit | 4f327120ac34a7a530497bf0f6e2268d847fdb12 (patch) | |
tree | 8416b7232f18fac20b7fd21135701f5421748363 /CMakeLists.txt | |
parent | cc8456ec6bf239b1386796c5a9cb507dace30085 (diff) | |
download | PrismLauncher-4f327120ac34a7a530497bf0f6e2268d847fdb12.tar.gz PrismLauncher-4f327120ac34a7a530497bf0f6e2268d847fdb12.tar.bz2 PrismLauncher-4f327120ac34a7a530497bf0f6e2268d847fdb12.zip |
CI: Link to release libraries even in debug
Signed-off-by: TheLastRar <TheLastRar@users.noreply.github.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f282c79f..00eb1925 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,6 +51,11 @@ if(MSVC) string(REGEX REPLACE "/Z[Ii]" "/Z7" ${flags_var} "${${flags_var}}") endforeach() endforeach() + + if(CMAKE_MSVC_RUNTIME_LIBRARY STREQUAL "MultiThreadedDLL") + set(CMAKE_MAP_IMPORTED_CONFIG_DEBUG Release "") + set(CMAKE_MAP_IMPORTED_CONFIG_RELWITHDEBINFO Release "") + endif() else() set(CMAKE_CXX_FLAGS "-Wall -pedantic -fstack-protector-strong --param=ssp-buffer-size=4 ${CMAKE_CXX_FLAGS}") |