[MDEV-32131] CMake <3.5 deprecation warnings Created: 2023-09-08  Updated: 2023-09-08

Status: Open
Project: MariaDB Server
Component/s: Compiling
Fix Version/s: None

Type: Task Priority: Major
Reporter: markus makela Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-31203 wsrep CMake Deprecation Warning Open
relates to MDEV-31204 Mroonga CMake Deprecation Warning Open

 Description   

CMake 3.27.4 reports the following warnings on at least 11.3 and probably on all older versions as well:

CMake Deprecation Warning at CMakeLists.txt:17 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.
 
  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
 
 
CMake Warning (dev) at CMakeLists.txt:30 (PROJECT):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
 
  The following variable(s) would be set to empty:
 
    CMAKE_PROJECT_VERSION
    CMAKE_PROJECT_VERSION_MAJOR
    CMAKE_PROJECT_VERSION_MINOR
    CMAKE_PROJECT_VERSION_PATCH
This warning is for project developers.  Use -Wno-dev to suppress it.

The same deprecation warning is reported for the wsrep and mroonga libraries.



 Comments   
Comment by Sergei Golubchik [ 2023-09-08 ]

Nothing we can do about it now. CentOS 7 is not EOL yet and it has cmake 2.8.12.2 it its repositories.

It reaches EOL on June 30, 2024.

Generated at Thu Feb 08 10:29:04 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.