Require Cmake 3.6 or higher
This gets rid of deprecation warnings. Cmake 3.6 has been out for almost 8 years by now, so this requirement should not cause undue trouble to people trying to compile the game.
This commit is contained in:
parent
48764a6202
commit
7d4e8433c1
@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 2.8.4)
|
||||
cmake_minimum_required(VERSION 3.6.0)
|
||||
|
||||
# root CMakeLists for the SuperTuxKart project
|
||||
project(SuperTuxKart)
|
||||
@ -6,10 +6,6 @@ set(PROJECT_VERSION "git")
|
||||
|
||||
add_definitions( -DSUPERTUXKART_VERSION="${PROJECT_VERSION}" )
|
||||
|
||||
if(NOT (CMAKE_MAJOR_VERSION VERSION_LESS 3))
|
||||
cmake_policy(SET CMP0043 OLD)
|
||||
endif()
|
||||
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake")
|
||||
include(CMakeDependentOption)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
cmake_minimum_required(VERSION 3.6.0)
|
||||
|
||||
project(enet)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
cmake_minimum_required(VERSION 3.6.0)
|
||||
include_directories("${PROJECT_SOURCE_DIR}/lib/simd_wrapper")
|
||||
if (UNIX OR MINGW)
|
||||
add_definitions(-O3)
|
||||
|
@ -8,7 +8,7 @@
|
||||
# Unix and VS: SSE2 support is enabled by default
|
||||
# use BUILD_SQUISH_WITH_SSE2 and BUILD_SQUISH_WITH_ALTIVEC to override
|
||||
|
||||
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.3)
|
||||
CMAKE_MINIMUM_REQUIRED(VERSION 3.6.0)
|
||||
|
||||
OPTION(BUILD_SQUISH_WITH_OPENMP "Build with OpenMP." OFF)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
cmake_minimum_required(VERSION 3.6.0)
|
||||
if (UNIX OR MINGW)
|
||||
add_definitions(-O3)
|
||||
if (APPLE)
|
||||
|
@ -39,7 +39,7 @@ set(VERSION "0.1.0")
|
||||
|
||||
### CMake configuration
|
||||
|
||||
cmake_minimum_required(VERSION 2.4)
|
||||
cmake_minimum_required(VERSION 3.6.0)
|
||||
if(COMMAND cmake_policy)
|
||||
CMAKE_POLICY(SET CMP0003 NEW)
|
||||
endif(COMMAND cmake_policy)
|
||||
|
@ -2,13 +2,7 @@
|
||||
# http://academic.cleardefinition.com/
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
|
||||
cmake_minimum_required(VERSION 2.8.0)
|
||||
|
||||
# Added for STK, silences CMake warning
|
||||
# See https://github.com/supertuxkart/stk-code/commit/b0ff15873ee7fa8901672672b47def9039a5534b#diff-a3e272598233e89e4b577a434cc2a89d
|
||||
if(NOT (CMAKE_MAJOR_VERSION VERSION_LESS 3))
|
||||
cmake_policy(SET CMP0048 OLD)
|
||||
endif()
|
||||
cmake_minimum_required(VERSION 3.6.0)
|
||||
|
||||
# Set package properties
|
||||
project(WiiUse)
|
||||
|
Loading…
Reference in New Issue
Block a user