Fix a logic error re: DAP4 tests, when DAP4 is specified, but hdf5/netcdf4 support is disabled.
@@ -1062,11 +1062,13 @@ ENDIF()
IF(ENABLE_DAP)
SET(USE_DAP ON CACHE BOOL "")
SET(ENABLE_DAP2 ON CACHE BOOL "")
- SET(ENABLE_DAP4 ON CACHE BOOL "")
- IF(NOT ENABLE_HDF5)
+ IF(NOT ENABLE_HDF5 OR NOT ENABLE_NETCDF4)
+ MESSAGE(STATUS "Disabling ENABLE_DAP4")
SET(ENABLE_DAP4 OFF CACHE BOOL "")
- ENDIF(NOT ENABLE_HDF5)
+ ELSE()
+ SET(ENABLE_DAP4 ON CACHE BOOL "")
+ ENDIF(NOT ENABLE_HDF5 OR NOT ENABLE_NETCDF4)
ELSE()
SET(ENABLE_DAP2 OFF CACHE BOOL "")
