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

Repeat ENV sub-option for all env vars in find_program #12

Merged
merged 1 commit into from
Feb 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmake/FindNetCDF.cmake
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# First try to locate nf-config.
find_program(NetCDF_Fortran_CONFIG_EXECUTABLE
NAMES nf-config
HINTS ENV NetCDF_ROOT NetCDF_Fortran_ROOT
HINTS ENV NetCDF_ROOT ENV NetCDF_Fortran_ROOT
PATH_SUFFIXES bin Bin
DOC "NetCDF config program. Used to detect NetCDF Fortran include directory and linker flags." )
mark_as_advanced(NetCDF_Fortran_CONFIG_EXECUTABLE)
find_program(NetCDF_C_CONFIG_EXECUTABLE
NAMES nc-config
HINTS ENV NetCDF_ROOT NetCDF_C_ROOT
HINTS ENV NetCDF_ROOT ENV NetCDF_C_ROOT
PATH_SUFFIXES bin Bin
DOC "NetCDF config program. Used to detect NetCDF C include directory and linker flags." )
mark_as_advanced(NetCDF_C_CONFIG_EXECUTABLE)
Expand Down
Loading