mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:24:33 +01:00
cmake: add /Zc:preprocessor to handle new OptTable macros
See:12d8e7c6adSee:3f092f37b7cmake: set MSVC_RUNTIME_LIBRARY for zigcpp
This commit is contained in:
parent
fb88cfdf6a
commit
710d745a54
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue