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

Use install directory that matches package name #428

Merged
merged 1 commit into from
Jan 13, 2024

Conversation

islas
Copy link
Contributor

@islas islas commented Jan 8, 2024

To follow cmake find_pacakge() search procedure rules, the install directory name should match the package name:
https://cmake.org/cmake/help/v3.20/command/find_package.html#search-procedure

With this change, now find_package should work even when specifying only netCDF-Fortran_ROOT (thus running in Config Mode), which has the highest search precedence since CMake 3.12

Future improvements might include a variable to replace all instances of the string netCDF-Fortran so that variables or functions that ought to use the package name can source from one definition.

@WardF WardF self-assigned this Jan 13, 2024
@WardF WardF added this to the 4.6.2 milestone Jan 13, 2024
@WardF WardF merged commit 4be252a into Unidata:main Jan 13, 2024
21 checks passed
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