[cmake] use configuration generator expressions

This commit is contained in:
akallabeth 2024-11-12 09:37:05 +01:00
parent 0410fc1fe1
commit 81672c56e4

View File

@ -16,9 +16,7 @@ if (MSVC)
else()
set(MSVC_DEFAULT_RUNTIME "MultiThreaded")
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
string(APPEND MSVC_DEFAULT_RUNTIME "Debug")
endif()
string(APPEND MSVC_DEFAULT_RUNTIME "$<$<CONFIG:Debug>:Debug>")
if (BUILD_SHARED_LIBS)
string(APPEND MSVC_DEFAULT_RUNTIME "DLL")