From 56a0210e423a011856618463b63bbe4f1fbb1df7 Mon Sep 17 00:00:00 2001 From: George Fotopoulos <84932056+xorz57@users.noreply.github.com> Date: Sun, 17 Mar 2024 11:07:54 +0200 Subject: [PATCH] Fix CMakeLists.txt --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index da8ea3e..0ce4d9b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,10 +11,10 @@ set(CMAKE_AUTORCC ON) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) -if(MSVC_RUNTIME_DYNAMIC) - set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>DLL") -else() +if (VCPKG_TARGET_TRIPLET MATCHES "-static$") set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") +else() + set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>DLL") endif() find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets)