Skip to content

Commit

Permalink
Restore CMake propagation of NCXX_BINARY_DIR
Browse files Browse the repository at this point in the history
Now with explanation of why it is needed.

Co-authored-by: Peter Hill <[email protected]>
  • Loading branch information
johnomotani and ZedThree authored Feb 1, 2022
1 parent f4167a9 commit f292ae5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bout++Config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ if(EXISTS "@netCDFCxx_ROOT@")
set(netCDFCxx_ROOT "@netCDFCxx_ROOT@")
elseif(EXISTS "@NCXX4_CONFIG@")
set(NCXX4_CONFIG "@NCXX4_CONFIG@")
elseif(EXISTS "@NCXX_BINARY_DIR@")
# If we downloaded netCDF-cxx4, then we need to add its build directory to our search paths
list(APPEND CMAKE_PREFIX_PATH "@NCXX_BINARY_DIR@")
endif()
if(EXISTS "@HDF5F_ROOT@")
set(HDF5F_ROOT "@HDF5F_ROOT@")
Expand Down

0 comments on commit f292ae5

Please sign in to comment.