[MDEV-16662] CMake warnings Created: 2018-07-02  Updated: 2020-02-25  Resolved: 2018-08-12

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

Type: Bug Priority: Major
Reporter: markus makela Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
PartOf
includes MDEV-14898 CMake Deprecation Warning Closed
Relates
relates to CONC-346 CMake warnings Closed

 Description   

With CMake 3.11.2 I get the following warnings on 10.4:

  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:30 (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.
 
 
CMake Deprecation Warning at CMakeLists.txt:31 (CMAKE_POLICY):
  The OLD behavior for policy CMP0045 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:32 (CMAKE_POLICY):
  The OLD behavior for policy CMP0042 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 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.



 Comments   
Comment by Sergei Golubchik [ 2018-07-02 ]

Just fixed 7, 22, and 26 a couple of days ago. Not pushed yet.

Comment by Sergei Golubchik [ 2018-07-11 ]

wlad, could you please look at my changes? They're in bb-10.3-serg tree and the one that particularly needs a second pair of eyes is for CMP0026. And there, in particular, the MSI part. I did test that it all buillds, but I didn't try to install.

Comment by Vladislav Vaintroub [ 2018-08-07 ]

Looks ok to me , but I don't you think we could remove own copy of FindZSTD, because rocksdb got own submodules. I tested MSI, it works as before.

Comment by Sergei Golubchik [ 2018-08-07 ]

I didn't remove it, just renamed to "Findzstd" and changed semantics to match Findzstd from rocksdb submodule.

So that we wouldn't have two ways to find zstd with a different lettercase and slightly different semantics.

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