1
0
Fork 0

Fix build on MSVC 16.6.0.

This commit is contained in:
John Preston 2020-05-21 11:28:32 +04:00
parent d7c7e92ebc
commit 83150a4691

View file

@ -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()