mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-21 23:48:22 +08:00
UE/UF: user static CRT by default for Windows builds, take 2
This commit is contained in:
parent
92d0a8f754
commit
55b7a759ff
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user