[MDEV-14898] CMake Deprecation Warning Created: 2018-01-09  Updated: 2018-10-22  Resolved: 2018-10-22

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 5.5, 10.0, 10.1, 10.2
Fix Version/s: 10.3.9, 10.4.0

Type: Bug Priority: Minor
Reporter: Ondřej Surý (Inactive) Assignee: Vicențiu Ciorbaru
Resolution: Fixed Votes: 0
Labels: beginner-friendly

Issue Links:
PartOf
is part of MDEV-16662 CMake warnings Closed

 Description   

There's a CMake Deprecation Warning with cmake 3.9.5 (Debian unstable):

CMake Deprecation Warning at cmake/for_clients.cmake:15 (CMAKE_POLICY):
  The OLD behavior for policy CMP0007 will be removed from a future version
  of CMake.
 
  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  CMakeLists.txt:427 (INCLUDE)

This should be fixed if it doesn't break backwards compatibility much.



 Comments   
Comment by Sergei Golubchik [ 2018-01-14 ]

Also

CMake Deprecation Warning at CMakeLists.txt:26 (CMAKE_POLICY):
  The OLD behavior for policy CMP0022 will be removed from a future version
  of CMake.
 
  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
 
 
CMake Deprecation Warning at CMakeLists.txt:34 (CMAKE_POLICY):
  The OLD behavior for policy CMP0026 will be removed from a future version
  of CMake.
 
  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.

with cmake 3.9.6

Comment by Teodor Mircea Ionita (Inactive) [ 2018-10-22 ]

Fixed by serg in aa19eda7dac2f91da76fa1783fe4bb860e59fd94.

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