mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-10 13:04:15 -04:00
chore(ricepp): fix windows build
This commit is contained in:
parent
b4f9bcc863
commit
2fa95c6816
@ -31,6 +31,14 @@ if(NOT TARGET range-v3)
|
||||
FetchContent_MakeAvailable(range-v3)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
add_compile_options(/Zc:__cplusplus /utf-8 /wd4267 /wd4244 /wd5219)
|
||||
# Apply /MT or /MTd (multithread, static version of the run-time library)
|
||||
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<$<CONFIG:Debug>:Embedded>")
|
||||
add_compile_definitions(_WIN32_WINNT=0x0601 WINVER=0x0601)
|
||||
endif()
|
||||
|
||||
add_library(ricepp ricepp.cpp)
|
||||
|
||||
target_include_directories(ricepp PUBLIC include)
|
||||
|
Loading…
x
Reference in New Issue
Block a user