add static crt support

This commit is contained in:
2025-03-25 13:59:43 +08:00
parent 3f0c21d739
commit dc0e3ec2a2
2 changed files with 6 additions and 0 deletions

View File

@@ -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)

View File

Binary file not shown.