CMake: Sync up minimum version to 3.10

Besides being more consistent with the minimum version we use, this also
fixes warnings when using CMake 4.0.

Pull Request: https://projects.blender.org/blender/blender/pulls/142497
This commit is contained in:
Sebastian Parborg
2025-07-19 20:37:10 +02:00
committed by Sebastian Parborg
parent 9875836519
commit 17b9759942
7 changed files with 8 additions and 8 deletions

View File

@@ -14,7 +14,7 @@
#
##################################################################################################
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)
project("BlenderDependencies")
if(POLICY CMP0135)
cmake_policy(SET CMP0135 NEW) # CMake 3.24+ Set the date/time for extracted files to time of extraction

View File

@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.1)
cmake_minimum_required(VERSION 3.10)
project(libgmpxx)
include_directories(. cxx ${GMP_INCLUDE_DIR})

View File

@@ -1,6 +1,6 @@
project(lcms2)
cmake_minimum_required(VERSION 2.8)
cmake_minimum_required(VERSION 3.10)
include_directories(include)

View File

@@ -1,5 +1,5 @@
project(potrace)
cmake_minimum_required(VERSION 2.8)
cmake_minimum_required(VERSION 3.10)
include_directories(src/include)

View File

@@ -1,6 +1,6 @@
# Based on the VCPKG version of theora
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.10)
project(theora LANGUAGES C)
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}")
@@ -98,4 +98,4 @@ install(TARGETS theora theoraenc theoradec
RUNTIME DESTINATION bin
LIBRARY DESTINATION bin
ARCHIVE DESTINATION lib
)
)

View File

@@ -4,7 +4,7 @@ diff -Naur tinyxml.orig/CMakeLists.txt tinyxml/CMakeLists.txt
@@ -0,0 +1,30 @@
+project(tinyxml)
+
+cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 3.10)
+
+add_library(tinyxml
+ STATIC