1
0
Fork 0

Revert "Fix build on MSVC 16.6.0."

This reverts commit e4f4dad321.

MSVC 16.6.* has a critical bug if Qt is compiled with it. See:

https://developercommunity.visualstudio.com/content/problem/1072443/
static-structs-with-atomics-initialization-regress.html
This commit is contained in:
John Preston 2020-06-10 16:40:40 +04:00
parent b558136e64
commit eb97b772a3

View file

@ -19,8 +19,8 @@ else()
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
target_compile_options(external_ranges
INTERFACE
/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"
/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"
)
endif()
endif()