chore(ricepp): fix windows build

This commit is contained in:
Marcus Holland-Moritz 2024-02-11 10:29:18 +01:00
parent b4f9bcc863
commit 2fa95c6816

View File

@ -31,6 +31,14 @@ if(NOT TARGET range-v3)
FetchContent_MakeAvailable(range-v3) FetchContent_MakeAvailable(range-v3)
endif() 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) add_library(ricepp ricepp.cpp)
target_include_directories(ricepp PUBLIC include) target_include_directories(ricepp PUBLIC include)