cmake: add /Zc:preprocessor to handle new OptTable macros

See: 12d8e7c6ad
See: 3f092f37b7

cmake: set MSVC_RUNTIME_LIBRARY for zigcpp
This commit is contained in:
kcbanner 2024-05-23 08:48:46 -04:00 committed by Andrew Kelley
parent fb88cfdf6a
commit 710d745a54

View File

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