mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
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/
This commit is contained in:
parent
e71f47f1c9
commit
d22d08af87
1 changed files with 4 additions and 0 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue