From 6b1c1840ae10714dcb5603b39fc80dd9f40f5a4c Mon Sep 17 00:00:00 2001 From: Clara Martins Date: Sat, 18 Jun 2022 17:41:04 +0100 Subject: [PATCH] C++ 17 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Daniel Monteiro Co-authored-by: Gonçalo Pascoal --- CMakeLists.txt | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ebc0a8..4dc3ad3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,6 @@ add_executable(${PROJECT_NAME} lib/tinyxml/tinyxml2.cpp ) -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_FLAGS_OPTIMIZE}") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 ${GCC_FLAGS_OPTIMIZE}") target_link_libraries(${PROJECT_NAME} PUBLIC graphviewer) diff --git a/README.md b/README.md index 854d1b6..ab367ee 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ **External Dependencies** (must be installed in the user's computer in order to compile and run the program) - CMake -- C++ Compiler (for example, GCC) +- C++ 17 Compiler (for example, GCC) - SFML (`libsfml-dev` package on Ubuntu / Debian based operating systems): used by the GraphViewerCpp internal dependency **Internal Dependencies** (are already included in the project; their installation is not required)