Skip to content

Commit

Permalink
Removed ancient code forcing compilation of dependencies with c++11/1…
Browse files Browse the repository at this point in the history
…4 when using GCC11
  • Loading branch information
bathal1 committed Feb 14, 2023
1 parent 18f46c3 commit a13cce6
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions ext/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,6 @@ if (APPLE)
endif()

if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
CHECK_CXX_COMPILER_FLAG("-std=c++14" HAS_CPP14_FLAG)
CHECK_CXX_COMPILER_FLAG("-std=c++11" HAS_CPP11_FLAG)

if (HAS_CPP14_FLAG)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
elseif (HAS_CPP11_FLAG)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
else()
message(FATAL_ERROR "Unsupported compiler -- Nori requires C++11 support!")
endif()

# Prefer libc++ in conjunction with Clang
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
Expand Down

0 comments on commit a13cce6

Please sign in to comment.