add static crt support
This commit is contained in:
@@ -9,6 +9,12 @@ endif()
|
||||
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||
|
||||
set(DETOURS_LIB "${CMAKE_CURRENT_SOURCE_DIR}/lib/detours.lib")
|
||||
option(STATIC_CRT "Use static CRT" OFF)
|
||||
|
||||
if (STATIC_CRT)
|
||||
#add_link_options(/NODEFAULTLIB:libucrt)
|
||||
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||
endif()
|
||||
|
||||
set(ENABLE_ICONV OFF CACHE BOOL "Libiconv is not needed.")
|
||||
add_subdirectory(utils)
|
||||
|
||||
BIN
lib/zlib.lib
BIN
lib/zlib.lib
Binary file not shown.
Reference in New Issue
Block a user