[MDEV-24034] Policy CMP0075 is not set during compile Created: 2020-10-27  Updated: 2020-12-15  Resolved: 2020-12-15

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 10.4
Fix Version/s: 10.2.37, 10.3.28

Type: Bug Priority: Major
Reporter: Roel Van de Paar Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 0
Labels: None


 Description   

-- Looking for unistd.h
CMake Warning (dev) at /usr/share/cmake-3.16/Modules/CheckIncludeFile.cmake:80 (message):
  Policy CMP0075 is not set: Include file check macros honor
  CMAKE_REQUIRED_LIBRARIES.  Run "cmake --help-policy CMP0075" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.
  CMAKE_REQUIRED_LIBRARIES is set to:
    m;crypt;dl;-lpthread
  For compatibility with CMake 3.11 and below this check is ignoring it.
Call Stack (most recent call first):
  zlib/CMakeLists.txt:65 (check_include_file)
This warning is for project developers.  Use -Wno-dev to suppress it.
-- Looking for unistd.h - found

Seen on 10.4 at c4f8ccc0f53a4de9ca0cac54392b35348494040c, likely also present in other versions.

Discussed with wlad who has an idea where the issue is coming from.


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