Skip to content

Commit

Permalink
Set C++ standard in cmake, and enforce it since they wouldn't be able…
Browse files Browse the repository at this point in the history
… to compile anyway if their compiler doesn't support it.
  • Loading branch information
xwidghet committed Nov 19, 2016
1 parent f7f2e52 commit 89eda0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 3.2.0)

project(StepMania)

Expand Down
5 changes: 5 additions & 0 deletions StepmaniaCore.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ include("${SM_CMAKE_DIR}/SMDefs.cmake")
# Put the predefined targets in separate groups.
set_property(GLOBAL PROPERTY USE_FOLDERS ON)

# Enforce the highest C++ standard used in the code base
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

# Set up the linker flags for MSVC builds.
configure_msvc_runtime()

Expand Down

0 comments on commit 89eda0d

Please sign in to comment.