From 81672c56e44f70d9fdc65968a6b143ef932457fa Mon Sep 17 00:00:00 2001 From: akallabeth Date: Tue, 12 Nov 2024 09:37:05 +0100 Subject: [PATCH] [cmake] use configuration generator expressions --- cmake/MSVCRuntime.cmake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmake/MSVCRuntime.cmake b/cmake/MSVCRuntime.cmake index 7fb9fabdb..24e39f4c0 100644 --- a/cmake/MSVCRuntime.cmake +++ b/cmake/MSVCRuntime.cmake @@ -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 "$<$:Debug>") if (BUILD_SHARED_LIBS) string(APPEND MSVC_DEFAULT_RUNTIME "DLL")