From 3acf7d6decc442cf82d57a0aa20dbd35efa0dfbe Mon Sep 17 00:00:00 2001 From: tcoyvwac <53616399+tcoyvwac@users.noreply.github.com> Date: Thu, 25 Aug 2022 18:42:11 +0200 Subject: [PATCH] fix: promote project standard to: c++17 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bb05206b..0195710a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,7 @@ project(glslViewer VERSION ${VERSION} LANGUAGES CXX ) -set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) @@ -21,7 +21,7 @@ if(MSVC) endif() if (NO_X11 OR FORCE_GBM) - add_compile_options(-std=c++14 -DGLM_FORCE_CXX14 -fpermissive -Wno-psabi -lpthread) + add_compile_options(-std=c++17 -DGLM_FORCE_CXX17 -fpermissive -Wno-psabi -lpthread) endif() file(GLOB ROOT_SOURCE