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 | 728 | -Wno-missing-braces |
| 729 | 729 | -Wno-comment |
| 730 | 730 | ) |
| 731 | else() |
| 732 | target_compile_options(zigcpp PRIVATE /Zc:preprocessor) |
| 733 | set_property(TARGET zigcpp PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded") |
| 731 | 734 | endif() |
| 732 | 735 | |
| 733 | 736 | target_include_directories(zigcpp PUBLIC |