Skip to content

Policy 0177 in cmake process #475

Description

@Hombre57

When running the cmake process, the following warning occurs several time :

CMake Warning (dev) at CMakeLists.txt:843 (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.

This is due to set(DATADIR .) on line :

set(DATADIR .)

From cmake 3.31, the destination path for the install() command must be normalized.

I'd suggest the attached patch (I can create a PR if needed). Not a big deal, but we all like clean logs 😉 .

policy0177.patch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions