From d22d08af87660c5fdda1329368e446adf2e41bae Mon Sep 17 00:00:00 2001 From: Misa Date: Sun, 7 Jun 2020 12:57:18 -0700 Subject: [PATCH] Add C++98/C++03 standards declaration to CMakeFiles.txt This enforces the C++03 standard for people making pull requests who may not realize their fancy features are too new and shouldn't be used (cough, cough, @leo60228). I did some internet searching and this is what I got from this page: https://crascit.com/2015/03/28/enabling-cxx11-in-cmake/ --- desktop_version/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desktop_version/CMakeLists.txt b/desktop_version/CMakeLists.txt index 7490e890..fcddc60f 100644 --- a/desktop_version/CMakeLists.txt +++ b/desktop_version/CMakeLists.txt @@ -18,6 +18,10 @@ IF(CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebI SET(GOG ON) ENDIF() +# Set standard to C++98/C++03 +SET(CMAKE_CXX_STANDARD 98) +SET(CMAKE_CXX_EXTENSIONS OFF) # prevent mixing stdlib implementations (dangerous!) + # Architecture Flags IF(APPLE) # Wow, Apple is a huge jerk these days huh?