Skip to content

Commit 710d745

Browse files
kcbannerandrewrk
authored andcommitted
cmake: add /Zc:preprocessor to handle new OptTable macros
See: llvm/llvm-project@12d8e7c See: llvm/llvm-project@3f092f3 cmake: set MSVC_RUNTIME_LIBRARY for zigcpp
1 parent fb88cfd commit 710d745

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,9 @@ if(NOT MSVC)
728728
-Wno-missing-braces
729729
-Wno-comment
730730
)
731+
else()
732+
target_compile_options(zigcpp PRIVATE /Zc:preprocessor)
733+
set_property(TARGET zigcpp PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded")
731734
endif()
732735

733736
target_include_directories(zigcpp PUBLIC

0 commit comments

Comments
 (0)