X-Git-Url: https://rtime.felk.cvut.cz/gitweb/hubacji1/rrts.git/blobdiff_plain/2eaed6492ceaa75da8c9ddabd0efd78582e472c4..59d8b2e28ee155c6443236636632065d5bf243b5:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 4aeb631..f16fb09 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,12 @@ project(rrts) #set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address") #set (CMAKE_LINKER_FLAGS "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address") +set(CMAKE_CXX_STANDARD 17) +# Require compiler version (g++ >= 7 tested) +if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7) + message(FATAL_ERROR "GCC version must be at least 7!") +endif() + if (NOT TARGET bcar) set(SKIP_UT TRUE) add_subdirectory(bcar)