Skip to content

CMP0144 CMake Warning in HPC: Boost_ROOT #57

@ax3l

Description

@ax3l

https://cmake.org/cmake/help/latest/policy/CMP0144.html

e.g. on Frontier with CMake 3.27.9:

CMake Warning (dev) at build/_deps/fetchedpicsar-src/multi_physics/QED/CMakeLists.txt:44 (find_package):
  Policy CMP0144 is not set: find_package uses upper-case <PACKAGENAME>_ROOT
  variables.  Run "cmake --help-policy CMP0144" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  Environment variable BOOST_ROOT is set to:

    /sw/frontier/spack-envs/cpe23.12-cpu/opt/cce-17.0.0/boost-1.85.0-usksrbcayou35f6nqrfaz6nocuerwdkd

  For compatibility, find_package is ignoring the variable, but code in a
  .cmake module might still use it.
This warning is for project developers.  Use -Wno-dev to suppress it.

I would set the policy to NEW, to supress the warning (or bump the minimal required CMake in PICSAR).

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions