Skip to content

CMake: Policy CMP0144 NEW (BOOST_ROOT) - #65

Merged
lucafedeli88 merged 1 commit into
ECP-WarpX:developmentfrom
ax3l:topic-boost-root
Sep 24, 2026
Merged

lucafedeli88 merged 1 commit into
ECP-WarpX:developmentfrom
ax3l:topic-boost-root

Conversation

@ax3l

@ax3l ax3l commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Set CMake policy CMP0144 to NEW so find_package uses upper-case <PACKAGENAME>_ROOT variables, e.g., the BOOST_ROOT that many HPC modules set. This silences the CMP0144 warning with CMake 3.27+.
https://cmake.org/cmake/help/latest/policy/CMP0144.html

Close #57

@ax3l ax3l added the warning label Sep 23, 2026
@ax3l
ax3l requested review from EZoni and lucafedeli88 September 23, 2026 17:35
@ax3l ax3l mentioned this pull request Sep 23, 2026
Let `find_package` use upper-case `<PACKAGENAME>_ROOT` variables,
e.g., `BOOST_ROOT` as set by many HPC modules. Silences the CMP0144
dev warning with CMake 3.27+. The CMake minimum stays 3.12.

Close ECP-WarpX#57

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

@lucafedeli88 lucafedeli88 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @ax3l

@lucafedeli88
lucafedeli88 merged commit 9eea6a7 into ECP-WarpX:development Sep 24, 2026
6 checks passed
@ax3l
ax3l deleted the topic-boost-root branch September 24, 2026 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CMP0144 CMake Warning in HPC: Boost_ROOT

2 participants