Commit 710d745a54

kcbanner <kcbanner@gmail.com>
2024-05-23 14:48:46
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 parent fb88cfd
Changed files (1)
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