Skip to content

Commit

Permalink
cmake: bumped minimal required version to 3.19
Browse files Browse the repository at this point in the history
  • Loading branch information
SNMetamorph committed Mar 11, 2024
1 parent d43d4ce commit b138172
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 27 deletions.
16 changes: 2 additions & 14 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 3.19)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")

if(NOT ${CMAKE_VERSION} VERSION_LESS "3.15.0")
cmake_policy(SET CMP0091 NEW)
endif()

# add_compile_options for older cmake versions
if(${CMAKE_VERSION} VERSION_LESS "3.0.2")
macro(add_compile_options)
set(list_var "${ARGV}")
foreach(arg IN LISTS list_var)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${arg}")
endforeach()
endmacro()
endif()
cmake_policy(SET CMP0091 NEW)

include(VcpkgIntegration)
include(VcpkgAndroid)
Expand Down
2 changes: 1 addition & 1 deletion client/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.19)

project(client)
include(CheckIncludeFile)
Expand Down
2 changes: 1 addition & 1 deletion game_launcher/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.19)

project(game_launcher)
include(CompilerRuntime)
Expand Down
2 changes: 1 addition & 1 deletion server/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.19)

project(server)
include(CheckIncludeFile)
Expand Down
2 changes: 1 addition & 1 deletion utils/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.19)

project(utils)
include(CompilerRuntime)
Expand Down
2 changes: 1 addition & 1 deletion utils/common/imagelib/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.19)

project(imagelib)
include(CompilerRuntime)
Expand Down
2 changes: 1 addition & 1 deletion utils/pxbsp/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.19)

project(pxbsp)
include(CompilerRuntime)
Expand Down
2 changes: 1 addition & 1 deletion utils/pxcsg/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.19)

project(pxcsg)
include(CompilerRuntime)
Expand Down
2 changes: 1 addition & 1 deletion utils/pxmakewad/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.19)

project(pxmakewad)
include(CompilerRuntime)
Expand Down
2 changes: 1 addition & 1 deletion utils/pxmv/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.19)

project(pxmv)
include(CompilerRuntime)
Expand Down
2 changes: 1 addition & 1 deletion utils/pxrad/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.19)

project(pxrad)
set(COMPATIBILITY_TYPE "p2" CACHE STRING "Compatibility type of pxrad (available values: 'p2', 'p1', 'goldsrc')")
Expand Down
2 changes: 1 addition & 1 deletion utils/pxstudiomdl/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.19)

project(pxstudiomdl)
include(CompilerRuntime)
Expand Down
2 changes: 1 addition & 1 deletion utils/pxsv/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.19)

project(pxsv)
include(CompilerRuntime)
Expand Down
2 changes: 1 addition & 1 deletion utils/pxvis/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.19)

project(pxvis)
include(CompilerRuntime)
Expand Down

0 comments on commit b138172

Please sign in to comment.