Skip to content

Commit b0f2433

Browse files
Set CMake policy CMP0144 to new to use <PACKAGENAME>_ROOT env vars
See the CHANGELOG.md entry. Signed-off-by: Roscoe A. Bartlett <rabartl@sandia.gov>
1 parent d27a47d commit b0f2433

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tribits/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
ChangeLog for TriBITS
33
----------------------------------------
44

5+
## 2025-03-22:
6+
7+
* **Changed:** Set CMake policy
8+
[CMP0144](https://cmake.org/cmake/help/latest/policy/CMP0144.html) to `NEW`
9+
(for versions of CMake 3.27+) so that `find_package(<PackageName> ...)` will
10+
use upper case env var `<PACKAGENAME>_ROOT`. Now, systems that are setting
11+
uppercase env var names for standard packages will get picked in CMake
12+
configures.
13+
514
## 2025-02-17:
615

716
* **Added:** Added support for header-only libraries with

tribits/core/common/TribitsCMakePolicies.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ cmake_policy(SET CMP0053 NEW) # Make var references much faster
1515
cmake_policy(SET CMP0054 NEW) # Avoid quoted strings lookup variables
1616
cmake_policy(SET CMP0057 NEW) # Support if ( ... IN_LIST ... )
1717
cmake_policy(SET CMP0082 NEW) # Install rules follow order install() called in subdirs
18+
cmake_policy(SET CMP0144 NEW) # find_package() use <PACKAGENAME>_ROOT env var

0 commit comments

Comments
 (0)