Corrected logic error in cmake.
@@ -1091,7 +1091,9 @@ IF(ENABLE_PARALLEL_TESTS AND USE_PARALLEL)
IF(USE_NETCDF4)
SET(TEST_PARALLEL4 ON CACHE BOOL "")
ENDIF()
-ELSE()
+ENDIF()
+
+IF (ENABLE_PARALLEL_TESTS AND NOT USE_PARALLEL)
MESSAGE(FATAL_ERROR "Parallel tests requested, but no parallel HDF5 installation detected.")
ENDIF()
