Skip to content

Commit

Permalink
Add check for <ranges> header
Browse files Browse the repository at this point in the history
  • Loading branch information
imwints committed Nov 26, 2023
1 parent ebbb769 commit 7588d96
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Expand Up @@ -44,8 +44,14 @@ if(BTOP_STATIC)
endif()

include(CheckCXXCompilerFlag)
include(CheckIncludeFileCXX)
include(CheckIPOSupported)

check_include_file_cxx(ranges CXX_HAS_RANGES)
if(NOT CXX_HAS_RANGES)
message(FATAL_ERROR "The compiler doesn't support <ranges>")
endif()

add_executable(btop
src/btop.cpp
src/btop_config.cpp
Expand Down

0 comments on commit 7588d96

Please sign in to comment.