[cmake] use configuration generator expressions

This commit is contained in:
akallabeth 2024-11-12 09:37:05 +01:00
parent 1996531c18
commit 54f96539a1
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

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")