Skip to content

Commit

Permalink
build: add /Zc:preprocessor for MSVC (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardapeters authored Jan 11, 2024
1 parent 0481386 commit 4e827ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cucumber-cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ target_compile_options(cucumber-cpp PRIVATE
$<$<CXX_COMPILER_ID:GNU>:-Wno-deprecated-declarations>
)

target_compile_options(cucumber-cpp PUBLIC
$<$<CXX_COMPILER_ID:MSVC>:/Zc:preprocessor>
)

add_subdirectory(report)

if (CCR_BUILD_TESTS)
Expand Down

0 comments on commit 4e827ac

Please sign in to comment.