[Rpm-maint] [rpm-software-management/rpm] CMake 3.31 warning due to path normalization (Issue #3605)

Michal Domonkos notifications at github.com
Thu Feb 27 11:18:45 UTC 2025


dmnks created an issue (rpm-software-management/rpm#3605)

When configuring rpm on Fedora 43 (Rawhide) that ships with cmake 3.31, the following warning is printed:

```
CMake Warning (dev) at plugins/CMakeLists.txt:16 (install):
  Policy CMP0177 is not set: install() DESTINATION paths are normalized.  Run
  "cmake --help-policy CMP0177" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.
```

More details: https://cmake.org/cmake/help/latest/policy/CMP0177.html

This appears to be related to:

```cmake
install(FILES org.rpm.conf DESTINATION ${dbus-1_DATADIR}/dbus-1/system.d/)
```

I'm not sure why the warning is printed, though, given the following:

> This policy was introduced in CMake version 3.31. It may be set by [cmake_policy()](https://cmake.org/cmake/help/latest/command/cmake_policy.html#command:cmake_policy) or [cmake_minimum_required()](https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html#command:cmake_minimum_required). If it is not set, CMake will warn if it detects a path that would be different if normalized, and uses OLD behavior.

Anyway, this probably needs a closer look, just to make sure we're not breaking any install paths.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3605
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/3605 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250227/fd55252c/attachment.htm>


More information about the Rpm-maint mailing list