Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMP0144 CMake Warning in HPC: Boost_ROOT #57

Open
ax3l opened this issue Feb 3, 2025 · 0 comments
Open

CMP0144 CMake Warning in HPC: Boost_ROOT #57

ax3l opened this issue Feb 3, 2025 · 0 comments
Assignees
Labels

Comments

@ax3l
Copy link
Member

ax3l commented Feb 3, 2025

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants