Skip to content

Commit

Permalink
CMake: Ensure MPI dependency is found in installed config
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedThree committed Oct 2, 2023
1 parent f71d059 commit d4412df
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions netCDFConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@ set(netCDF_HAS_DAP4 @HAS_DAP4@)
set(netCDF_HAS_DISKLESS @HAS_DISKLESS@)
set(netCDF_HAS_MMAP @HAS_MMAP@)
set(netCDF_HAS_JNA @HAS_JNA@)

if (@HAS_PARALLEL@)
include(CMakeFindDependencyMacro)
find_dependency(MPI @MPI_C_VERSION@ EXACT)
endif()

0 comments on commit d4412df

Please sign in to comment.