Skip to content

Commit

Permalink
Don't override choice of CMAKE_CXX_STANDARD. (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc committed Apr 5, 2023
1 parent 2ffb943 commit 3a32f30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ if(NOT DEFINED CMAKE_CXX_STANDARD)
set(CMAKE_CXX_EXTENSIONS OFF)
endif()

if(HIGHFIVE_USE_XTENSOR)
if(HIGHFIVE_USE_XTENSOR AND CMAKE_CXX_STANDARD LESS 14)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
endif()
Expand Down

0 comments on commit 3a32f30

Please sign in to comment.