From dc55e7fdb688374ea5e239e2b7bf85ac956327b2 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Mon, 7 Sep 2020 17:31:30 -0400 Subject: [PATCH 1/2] Target C++ 17 --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9177852..67d1937 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,7 @@ project (raylib-cpp # Options option(BUILD_RAYLIB_CPP_STATIC "Static Library" ON) option(BUILD_RAYLIB_CPP_EXAMPLES "Examples" ON) +set(CMAKE_CXX_STANDARD 17) # Include Directory add_subdirectory(include) From ea3db645c39320511ffa770ffecb7c333e67613d Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Sun, 13 Sep 2020 17:16:43 -0400 Subject: [PATCH 2/2] Update CMakeLists.txt --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 67d1937..5669644 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,11 @@ project (raylib-cpp # Options option(BUILD_RAYLIB_CPP_STATIC "Static Library" ON) option(BUILD_RAYLIB_CPP_EXAMPLES "Examples" ON) + +# C++17 set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_CXX_EXTENSIONS OFF) # Include Directory add_subdirectory(include)