From e2ecb700808fa762c7b172e5c6a727317f496d69 Mon Sep 17 00:00:00 2001 From: George Fotopoulos <84932056+xorz57@users.noreply.github.com> Date: Wed, 15 Nov 2023 13:24:05 +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 b2874b6..a925aaa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,9 @@ set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) -set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") +if(VCPKG_TARGET_TRIPLET MATCHES "-static$") + set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") +endif() add_library(ServiceLocator INTERFACE) target_include_directories(ServiceLocator INTERFACE ${CMAKE_SOURCE_DIR}/include)