diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-01-25 17:42:56 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-01-25 17:42:56 +0100 |
commit | 8d06606835e3d01f537ebe96de8b216e64a1f969 (patch) | |
tree | 5def38115e55b4b9b78a016e6fe9cfc2771d22a0 /CMakeLists.txt | |
parent | dadefbcd103bd11bc74ca35a40d18dd2c1877f70 (diff) | |
download | mana-8d06606835e3d01f537ebe96de8b216e64a1f969.tar.gz mana-8d06606835e3d01f537ebe96de8b216e64a1f969.tar.bz2 mana-8d06606835e3d01f537ebe96de8b216e64a1f969.tar.xz mana-8d06606835e3d01f537ebe96de8b216e64a1f969.zip |
Always use C++11 and remove related compatibility option/code
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9fbf4e1b..6b0da2e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ -CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12) -CMAKE_POLICY(VERSION 2.8.12) +CMAKE_MINIMUM_REQUIRED(VERSION 3.1) +CMAKE_POLICY(VERSION 3.1) PROJECT(MANA) @@ -7,6 +7,8 @@ IF (NOT VERSION) SET(VERSION 0.6.1) ENDIF() +set (CMAKE_CXX_STANDARD 11) + STRING(REPLACE "." " " _VERSION ${VERSION}) SEPARATE_ARGUMENTS(_VERSION) LIST(LENGTH _VERSION _LEN) @@ -31,7 +33,6 @@ FIND_PACKAGE(Gettext) OPTION(WITH_OPENGL "Enable OpenGL support" ON) OPTION(ENABLE_NLS "Enable building of tranlations" ON) OPTION(ENABLE_MANASERV "Enable Manaserv support" ON) -OPTION(ENABLE_CPP0X "Enable use of C++0x features" OFF) IF (WIN32) SET(PKG_DATADIR ".") |