BabelStream/src/std-ranges/model.cmake
Tom Lin f9bba3c0de Split implementation for index/data oriented std variants
Fix missing range iterator functions for std-indices
Rename std20 to std-ranges
2021-12-15 21:38:56 +00:00

17 lines
589 B
CMake

register_flag_optional(CMAKE_CXX_COMPILER
"Any CXX compiler that is supported by CMake detection and supports C++20 Ranges"
"c++")
macro(setup)
# TODO this needs to eventually be removed when CMake adds proper C++20 support or at least update the flag used here
# C++ 2a is too new, disable CMake's std flags completely:
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED OFF)
unset(CMAKE_CXX_STANDARD) # drop any existing standard we have set by default
# and append our own:
register_append_cxx_flags(ANY -std=c++2a)
endmacro()