diff --git a/CMakeLists.txt b/CMakeLists.txt index e1e8fcf921..feb1577476 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -728,6 +728,9 @@ if(NOT MSVC) -Wno-missing-braces -Wno-comment ) +else() +target_compile_options(zigcpp PRIVATE /Zc:preprocessor) +set_property(TARGET zigcpp PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded") endif() target_include_directories(zigcpp PUBLIC