Skip to content
Permalink
Browse files
Merge pull request #6089 from ligfx/noc++1z
CMake: don't use -std=c++1z
  • Loading branch information
leoetlino committed Sep 28, 2017
2 parents 5b750c4 + 77a6003 commit 98210e7
Showing 1 changed file with 3 additions and 6 deletions.
@@ -20,12 +20,9 @@ else()
# CMAKE_CXX_STANDARD cannot be used here because we require C++14 or newer, not any standard.
check_and_add_flag(CXX17 -std=c++17)
if(NOT FLAG_CXX_CXX17)
check_and_add_flag(CXX1Z -std=c++1z)
if (NOT FLAG_CXX_CXX1Z)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
endif()
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
endif()

# These compat headers must not be in the include path when building with MSVC,

0 comments on commit 98210e7

Please sign in to comment.