Bump CMake minimum version and require C++11

This commit is contained in:
Edoardo Morandi 2022-12-19 18:17:54 +01:00
parent 6612ae497e
commit 354ae1db9c
1 changed files with 5 additions and 1 deletions

View File

@ -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")