From c263958d3bb93ca650ccad82d4cff6a2936800a9 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 20 May 2023 10:49:52 +0200 Subject: [PATCH] CMake: Disable compiler specific extensions --- u01/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) 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)