Skip to content

Commit

Permalink
[CMAKE] set CMP0074 policy to NEW (honour <packagename>_ROOT)
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisThielemans committed May 31, 2024
1 parent 63be16b commit f82b1fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# ChangeLog

## v3.8.0

* CMake/building:
- set CMP0074 policy to NEW, i.e. honour <packagename>_ROOT env variables

## v3.7.0

* SIRF/common
Expand Down
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ cmake_minimum_required(VERSION 3.9.0)
# require 3.3 for descent FindMatlab.cmake
# require 3.9 for compatible FindOPENMP.cmake

if (POLICY CMP0074)
# honour <packagename>_ROOT env variables
cmake_policy(SET CMP0074 NEW)
endif()

# Set the CMake policy for SWIG
# https://cmake.org/cmake/help/v3.14/policy/CMP0078.html#policy:CMP0078
Expand Down

0 comments on commit f82b1fe

Please sign in to comment.