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

Fix CMake CMP0074 #743

Merged
merged 1 commit into from
May 19, 2019
Merged

Fix CMake CMP0074 #743

merged 1 commit into from
May 19, 2019

Conversation

seisman
Copy link
Member

@seisman seisman commented May 19, 2019

CMP0074 (https://cmake.org/cmake/help/latest/policy/CMP0074.html).

In CMake 3.12 and above the find_package() command now searches prefixes specified by the _ROOT CMake variable and the _ROOT environment variable.

In our cmake scripts, <PackageName>_ROOT variables are only used to specify paths for searching packages, which is consistent with cmake's new behavior. Thus, it's safe to set the policy to NEW.

I tested it with cmake 3.14.3 and 3.11.1. both stops showing the CMP0074 warning.

Address #682.

@seisman seisman requested a review from a team May 19, 2019 19:09
@seisman seisman merged commit 794c0fd into master May 19, 2019
@seisman seisman deleted the fix-cmake-cmp0074 branch May 19, 2019 19:18
obaney pushed a commit to obaney/gmt that referenced this pull request Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants