From 354ae1db9c9b40f73b8abd4cbe4dda551a4109c6 Mon Sep 17 00:00:00 2001 From: Edoardo Morandi Date: Mon, 19 Dec 2022 18:17:54 +0100 Subject: [PATCH] Bump CMake minimum version and require C++11 --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 419f8d8..b69f71f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ # CMake File for Quadrilateral Cowboy (Because scons and Xcode are butt) # Written by Ethan "flibitijibibo" Lee -CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12) +CMAKE_MINIMUM_REQUIRED(VERSION 3.1) PROJECT(QuadrilateralCowboy) # CMake Options @@ -466,6 +466,10 @@ ENDIF() # Executable information ADD_EXECUTABLE(qc ${QC_SRC}) +set_target_properties(qc PROPERTIES + CXX_STANDARD 11 + CXX_STANDARD_REQUIRED ON) + # SDL2 Dependency (Detection pulled from FAudio) if (DEFINED SDL2_INCLUDE_DIRS AND DEFINED SDL2_LIBRARIES) message(STATUS "using pre-defined SDL2 variables SDL2_INCLUDE_DIRS and SDL2_LIBRARIES")