From d69aca65544258c5ab9a189741414bc1b2afe76b Mon Sep 17 00:00:00 2001 From: Nikolaj Schlej Date: Sat, 7 Nov 2020 17:57:13 -0800 Subject: [PATCH] UE/UF: user static CRT by default for Windows builds --- UEFIExtract/CMakeLists.txt | 5 ++++- UEFIFind/CMakeLists.txt | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/UEFIExtract/CMakeLists.txt b/UEFIExtract/CMakeLists.txt index e12b198..08c9a7d 100644 --- a/UEFIExtract/CMakeLists.txt +++ b/UEFIExtract/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0) +CMAKE_MINIMUM_REQUIRED(VERSION 3.15) PROJECT(UEFIExtract) @@ -88,3 +88,6 @@ SET(PROJECT_HEADERS ADD_DEFINITIONS(-DU_ENABLE_NVRAM_PARSING_SUPPORT -DU_ENABLE_ME_PARSING_SUPPORT -DU_ENABLE_FIT_PARSING_SUPPORT -DU_ENABLE_GUID_DATABASE_SUPPORT) ADD_EXECUTABLE(UEFIExtract ${PROJECT_SOURCES} ${PROJECT_HEADERS}) + +SET_PROPERTY(TARGET UEFIExtract PROPERTY + MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") diff --git a/UEFIFind/CMakeLists.txt b/UEFIFind/CMakeLists.txt index d54c18d..c69c8d8 100644 --- a/UEFIFind/CMakeLists.txt +++ b/UEFIFind/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0) +CMAKE_MINIMUM_REQUIRED(VERSION 3.15) PROJECT(UEFIFind) @@ -87,3 +87,6 @@ SET(PROJECT_HEADERS ADD_DEFINITIONS(-DU_ENABLE_NVRAM_PARSING_SUPPORT -DU_ENABLE_FIT_PARSING_SUPPORT -DU_ENABLE_GUID_DATABASE_SUPPORT) ADD_EXECUTABLE(UEFIFind ${PROJECT_SOURCES} ${PROJECT_HEADERS}) + +SET_PROPERTY(TARGET UEFIFind PROPERTY + MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>")