project_options icon indicating copy to clipboard operation
project_options copied to clipboard

New CMake 3.31 warning for policy CMP0177

Open ddassie-texa opened this issue 1 year ago • 0 comments

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.

ddassie-texa avatar Jan 16 '25 10:01 ddassie-texa