Skip to content

Commit

Permalink
Fix build on MSVC 16.6.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Aug 11, 2020
1 parent d7c7e92 commit 83150a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions external/ranges/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ if (NOT range-v3_FOUND)
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
target_compile_options(external_ranges
INTERFACE
/experimental:preprocessor # need for range-v3 see https://github.com/ericniebler/range-v3#supported-compilers
/wd5105 # needed for `/experimental:preprocessor`, suppressing C5105 "macro expansion producing 'defined' has undefined behavior"
/Zc:preprocessor # need for range-v3 see https://github.com/ericniebler/range-v3#supported-compilers
/wd5105 # needed for `/Zc:preprocessor`, suppressing C5105 "macro expansion producing 'defined' has undefined behavior"
)
endif()
endif()

0 comments on commit 83150a4

Please sign in to comment.