From e23fdbbe9747c62ed9b82eecfccc0194ae8c33f7 Mon Sep 17 00:00:00 2001 From: George Fotopoulos Date: Sat, 2 Mar 2024 23:21:50 +0200 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 22c025b..b7bc7af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,9 @@ set(CMAKE_AUTORCC ON) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) -if(VCPKG_TARGET_TRIPLET MATCHES "-static$") +if(MSVC_RUNTIME_DYNAMIC) + set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>DLL") +else() set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") endif()