CMake: Ensure MPI dependency is found in installed config

This commit is contained in:
Peter Hill 2023-10-02 10:51:02 +01:00
parent f71d05988e
commit d4412df2da
No known key found for this signature in database
GPG Key ID: 0C6B9742E72848EE

View File

@ -40,3 +40,8 @@ set(netCDF_HAS_DAP4 @HAS_DAP4@)
set(netCDF_HAS_DISKLESS @HAS_DISKLESS@) set(netCDF_HAS_DISKLESS @HAS_DISKLESS@)
set(netCDF_HAS_MMAP @HAS_MMAP@) set(netCDF_HAS_MMAP @HAS_MMAP@)
set(netCDF_HAS_JNA @HAS_JNA@) set(netCDF_HAS_JNA @HAS_JNA@)
if (@HAS_PARALLEL@)
include(CMakeFindDependencyMacro)
find_dependency(MPI @MPI_C_VERSION@ EXACT)
endif()