diff --git a/CMakeLists.txt b/CMakeLists.txt index e1e8fcf921002d4f3a1b86f140a8e617d1b7cc4c..feb157747645a6a75c543882bbd0054aab8b4e33 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