mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
CMake: Ensure MPI dependency is found in installed config
This commit is contained in:
parent
f71d05988e
commit
d4412df2da
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user