#3466: DefinePlatformSpecific.cmake: handle RelWithDebInfo and MinSizeRel configurations

This commit is contained in:
Günter Obiltschnig 2022-03-27 19:37:14 +02:00
parent 49573106c7
commit 852a53e702

View File

@ -28,9 +28,13 @@ if(MSVC)
CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_C_FLAGS
CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_MINSIZEREL
)
foreach(CompilerFlag ${CompilerFlags})
string(REPLACE "/MD" "/MT" ${CompilerFlag} "${${CompilerFlag}}")