Added a check to see if libnetcdf was built with parallel enabled.

This commit is contained in:
Ward Fisher 2015-04-27 10:53:33 -06:00
parent 4487dc44e6
commit 3760091cba

View File

@ -316,6 +316,14 @@ ELSE()
ENDIF()
ENDIF()
###
# Check to see if netcdf-c was built with parallel.
###
CHECK_LIBRARY_EXISTS(netcdf nc_use_parallel_enabled "" NC_IS_PARALLEL)
IF(NC_IS_PARALLEL)
SET(BUILD_PARALLEL ${NC_IS_PARALLEL} CACHE STRING "")
ENDIF()
################################
# End 'seek out dependent libraries'
################################