mirror of
https://github.com/aristocratos/btop.git
synced 2024-05-16 02:13:46 +12:00
Add check for <ranges> header
This commit is contained in:
parent
ebbb769a6a
commit
7588d96dd4
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue