From 05760e5129fd97d5786a78b44a667bafe31c0c0d Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 10 Sep 2024 15:14:50 -0400 Subject: [PATCH] Static link MSVC Executable (#41) --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d51510..0d96e63 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,7 @@ cmake_policy(SET CMP0091 NEW) # CLAP supports standard C; but this validator uses std::filesystem so requires C++ 17 # and macOS 10.15 set(CMAKE_OSX_DEPLOYMENT_TARGET 10.15 CACHE STRING "Minimum macOS version") +set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") project(clap-info VERSION 1.0.0 LANGUAGES C CXX) set(CMAKE_POSITION_INDEPENDENT_CODE ON)