Skip to content

Commit

Permalink
CMake: Fix missing /Zc:preprocessor needed for __VA_OPT__ on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
JGRennison committed Oct 4, 2024
1 parent 7d9d397 commit e2f344c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/CompileFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ macro(compile_flags)
# C++11 standard". We need C++11 for the way we use threads.
add_compile_options(/Zc:rvalueCast)

# Needed for __VA_OPT__() in macros.
add_compile_options(/Zc:preprocessor)

if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
add_compile_options(
/MP # Enable multi-threaded compilation.
Expand Down

0 comments on commit e2f344c

Please sign in to comment.