From c912c94e4f7091178ae2cae99fd1f578c1fc5a38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hrdli=C4=8Dka?= Date: Sat, 30 Jan 2021 01:45:04 +0100 Subject: [PATCH] Use the static CRT with CMake/MSVC builds --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8664b1387..95c4d425e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,8 +15,11 @@ cmake_minimum_required(VERSION 3.16) +cmake_policy(SET CMP0091 NEW) +set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") + project(86Box - VERSION 2.10 + VERSION 3.0 DESCRIPTION "Emulator of x86-based systems" HOMEPAGE_URL "https://86box.github.io/" LANGUAGES C CXX)