UE/UF: user static CRT by default for Windows builds, take 2

This commit is contained in:
Nikolaj Schlej 2020-11-07 18:11:16 -08:00
parent 92d0a8f754
commit 55b7a759ff
2 changed files with 12 additions and 2 deletions

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0)
CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
PROJECT(UEFIExtract)
@ -88,3 +88,8 @@ 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})
IF (${CMAKE_VERSION} VERSION_EQUAL "3.15.0" OR
${CMAKE_VERSION} VERSION_GREATER "3.15.0")
SET_PROPERTY(TARGET UEFIExtract PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
ENDIF()

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0)
CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
PROJECT(UEFIFind)
@ -87,3 +87,8 @@ 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})
IF (${CMAKE_VERSION} VERSION_EQUAL "3.15.0" OR
${CMAKE_VERSION} VERSION_GREATER "3.15.0")
SET_PROPERTY(TARGET UEFIFind PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
ENDIF()