1
0
Fork 0

Downgrade to C++17 on Apple Clang for now.

See https://github.com/ericniebler/range-v3/pull/1570.
This commit is contained in:
John Preston 2020-09-29 19:08:04 +03:00
parent c9d1ac50d3
commit 5d6f8ebee3
2 changed files with 2 additions and 1 deletions

View file

@ -5,7 +5,7 @@
# https://github.com/desktop-app/legal/blob/master/LEGAL
set(MAXIMUM_CXX_STANDARD cxx_std_20)
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(MAXIMUM_CXX_STANDARD cxx_std_17)
endif()

View file

@ -38,6 +38,7 @@ INTERFACE
-Wno-sign-compare
-Wno-unknown-attributes
-Wno-pragma-system-header-outside-header
-Wno-range-loop-analysis
)
if (DESKTOP_APP_SPECIAL_TARGET)