Skip to content

Commit 89eda0d

Browse files
committed
Set C++ standard in cmake, and enforce it since they wouldn't be able to compile anyway if their compiler doesn't support it.
1 parent f7f2e52 commit 89eda0d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 2.8.12)
1+
cmake_minimum_required(VERSION 3.2.0)
22

33
project(StepMania)
44

StepmaniaCore.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ include("${SM_CMAKE_DIR}/SMDefs.cmake")
4545
# Put the predefined targets in separate groups.
4646
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
4747

48+
# Enforce the highest C++ standard used in the code base
49+
set(CMAKE_CXX_STANDARD 11)
50+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
51+
set(CMAKE_CXX_EXTENSIONS OFF)
52+
4853
# Set up the linker flags for MSVC builds.
4954
configure_msvc_runtime()
5055

0 commit comments

Comments
 (0)