From a4d6ae195ca0b31a33c5801b2f2e8b2e8f8e434f Mon Sep 17 00:00:00 2001 From: Ward Fisher Date: Fri, 8 Mar 2013 23:26:28 +0000 Subject: [PATCH] --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bc7924f09..455b610ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -493,7 +493,7 @@ ENDIF() SET(STATUS_PARALLEL "OFF") OPTION(ENABLE_PARALLEL "Build netCDF-4 with parallel IO" OFF) -IF(ENABLE_PARALLEL) +IF(ENABLE_PARALLEL AND ENABLE_NETCDF_4) SET(USE_PARALLEL ON CACHE BOOL "") # Check for H5Pget_fapl_mpiposx, define USE_PARALLEL_POSIX CHECK_LIBRARY_EXISTS(${HDF5_LIB} H5Pget_fapl_mpioposix "" USE_PARALLEL_POSIX)