Skip to content

Commit

Permalink
Check for <span>.
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc committed May 6, 2024
1 parent 7971b73 commit 33f8696
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ else()
set(HIGHFIVE_EXTRAS_DEFAULT OFF)
endif()

if(CMAKE_CXX_STANDARD GREATER_EQUAL 20)
set(HIGHFIVE_TEST_SPAN_DEFAULT On)
if (CMAKE_CXX_STANDARD GREATER_EQUAL 20)
include(CheckIncludeFileCXX)
CHECK_INCLUDE_FILE_CXX(span HIGHFIVE_TEST_SPAN_DEFAULT)
else()
set(HIGHFIVE_TEST_SPAN_DEFAULT Off)
endif()
Expand Down

0 comments on commit 33f8696

Please sign in to comment.