Corrected DAP4 and NC4 logic
@@ -766,12 +766,16 @@ ENDIF(ENABLE_CDF5)
# Option to Build DAP2+DAP4 Clients
OPTION(ENABLE_DAP "Enable DAP2 and DAP4 Client." ON)
IF(ENABLE_DAP)
- SET(USE_DAP ON CACHE BOOL "Whether to use dap")
- SET(ENABLE_DAP2 ON CACHE BOOL "Whether we have DAP2.")
- SET(ENABLE_DAP4 ON CACHE BOOL "Wehther we have DAP4.")
- IF(NOT ENABLE_NETCDF_4)
+ SET(USE_DAP ON CACHE BOOL "")
+ SET(ENABLE_DAP2 ON CACHE BOOL "")
+
+
+ IF(ENABLE_NETCDF_4)
+ SET(ENABLE_DAP4 ON CACHE BOOL "")
+ ELSE(ENABLE_NETCDF_4)
SET(ENABLE_DAP4 OFF CACHE BOOL "")
- ENDIF()
+ ENDIF(ENABLE_NETCDF_4)
+
FIND_PACKAGE(CURL)
IF(NOT CURL_LIBRARY)
MESSAGE(FATAL_ERROR "DAP Support specified, CURL libraries are not found.")
