Fix build on MSVC 16.6.0.
This commit is contained in:
parent
d7c7e92ebc
commit
83150a4691
1 changed files with 2 additions and 2 deletions
4
external/ranges/CMakeLists.txt
vendored
4
external/ranges/CMakeLists.txt
vendored
|
|
@ -28,8 +28,8 @@ if (NOT range-v3_FOUND)
|
||||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||||
target_compile_options(external_ranges
|
target_compile_options(external_ranges
|
||||||
INTERFACE
|
INTERFACE
|
||||||
/experimental:preprocessor # need for range-v3 see https://github.com/ericniebler/range-v3#supported-compilers
|
/Zc: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"
|
/wd5105 # needed for `/Zc:preprocessor`, suppressing C5105 "macro expansion producing 'defined' has undefined behavior"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
Loading…
Add table
Reference in a new issue