mirror of
https://github.com/aristocratos/btop.git
synced 2026-05-19 05:54:05 -04:00
Add check for <ranges> header
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user