diff --git a/u01/CMakeLists.txt b/u01/CMakeLists.txt index 86abdf9..ce35d11 100644 --- a/u01/CMakeLists.txt +++ b/u01/CMakeLists.txt @@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 3.20) project(ecg_tree) +set(CMAKE_CXX_STANDARD 17) +# Disable compiler specific extensions +# On GNU this has the effect of passing -std=c++11 instead of -std=gnu++11 +set(CMAKE_CXX_EXTENSIONS no) + add_library(tree node.cpp) add_executable(main main.cpp) target_link_libraries(main tree)