Bug #87376 Building with cmake 3.9.0 or newer gives deprecation warnings
Submitted: 10 Aug 2017 13:13 Modified: 14 Dec 2017 17:51
Reporter: Terje Røsten Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.3 OS:Any
Assigned to: CPU Architecture:Any

[10 Aug 2017 13:13] Terje Røsten
Description:
$ cmake ..

Gives:

CMake Deprecation Warning at CMakeLists.txt:44 (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 scripts/CMakeLists.txt:355 (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.

How to repeat:
Build with cmake 3.9.0 or newer.

Suggested fix:
Change cmake code to be warning free with cmake 3.9.0.
[14 Dec 2017 17:51] Paul DuBois
Posted by developer:
 
Fixed in 5.7.22, 8.0.5, 9.0.0.

Code cleanup. No changelog entry needed.