Skip to content

Commit

Permalink
Require Cmake 3.6 or higher
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Alayan-stk-2 committed May 21, 2024
1 parent 48764a6 commit 7d4e843
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 17 deletions.
6 changes: 1 addition & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
cmake_minimum_required(VERSION 2.8.4)
cmake_minimum_required(VERSION 3.6.0)

# root CMakeLists for the SuperTuxKart project
project(SuperTuxKart)
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)

Expand Down
2 changes: 1 addition & 1 deletion lib/enet/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.6)
cmake_minimum_required(VERSION 3.6.0)

project(enet)

Expand Down
2 changes: 1 addition & 1 deletion lib/graphics_utils/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/libsquish/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion lib/mcpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/tinygettext/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 1 addition & 7 deletions lib/wiiuse/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7d4e843

Please sign in to comment.