Skip to content

New CMake 3.31 warning for policy CMP0177 #290

Open
@ddassie-texa

Description

@ddassie-texa

Looks like CMake 3.31 added a new policy CMP0177 regarding install paths:

CMake Warning (dev) at build/Debug/_deps/_project_options-src/src/PackageProject.cmake:194 (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.
 Call Stack (most recent call first):
   CMakeLists.txt:119 (package_project)
 This warning is for project developers.  Use -Wno-dev to suppress it.

I believe letting CMake normalize the paths should be fine in the context of PackageProject, but I could be wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions