authorgravatar for kcbanner@gmail.comCasey Banner <kcbanner@gmail.com> 2024-05-23 08:48:46-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-05-24 10:58:05-04:00
log710d745a548cffd2535cba2aaf904f9fc96aca94
tree38ca94b96df928b863a16b7e56c7a70d74bd18ad
parentfb88cfdf6aa3fabba700d8340f025e4a3e0d3fb2

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

See: https://github.com/llvm/llvm-project/commit/12d8e7c6ade55bba241259312e3e4bdcf6aeab81 See: https://github.com/llvm/llvm-project/commit/3f092f37b7362447cbb13f5502dae4bdd5762afd cmake: set MSVC_RUNTIME_LIBRARY for zigcpp

1 files changed, 3 insertions(+), 0 deletions(-)

CMakeLists.txt+3
...@@ -728,6 +728,9 @@ if(NOT MSVC)...@@ -728,6 +728,9 @@ if(NOT MSVC)
728 -Wno-missing-braces728 -Wno-missing-braces
729 -Wno-comment729 -Wno-comment
730 )730 )
731else()
732target_compile_options(zigcpp PRIVATE /Zc:preprocessor)
733set_property(TARGET zigcpp PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded")
731endif()734endif()
732735
733target_include_directories(zigcpp PUBLIC736target_include_directories(zigcpp PUBLIC