diff --git a/CMakeLists.txt b/CMakeLists.txt index e340c0e6c2..c619636bf0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -563,7 +563,12 @@ option(NETCDF_ENABLE_DAP_REMOTE_TESTS "Enable DAP remote tests." ON) option(NETCDF_ENABLE_EXTERNAL_SERVER_TESTS "Enable external Server remote tests." OFF) option(NETCDF_ENABLE_DAP_LONG_TESTS "Enable DAP long tests." OFF) -if(NOT NETCDF_ENABLE_DAP OR DEFINED ENV{REMOTETESTDOWN}) +if(DEFINED ENV{REMOTETESTDOWN}) +message(WARNING "ENV(REMOTETESTDOWN) => NETCDF_ENABLE_DAP == OFF) +set(NETCDF_ENABLE_DAP OFF CACHE BOOL "" FORCE) +endif() + +if(NOT NETCDF_ENABLE_DAP) set(NETCDF_ENABLE_DAP_REMOTE_TESTS OFF CACHE BOOL "" FORCE) set(NETCDF_ENABLE_EXTERNAL_SERVER_TESTS OFF CACHE BOOL "" FORCE) set(NETCDF_ENABLE_DAP_LONG_TESTS OFF CACHE BOOL "" FORCE)