diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0a2fb04e0a7b8f97edfede5750a39e80324f9367..bc6b5367b04f81998d3cab3fe2db086a28da21ec 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,16 +1,10 @@
 project(libdap-server C)
 cmake_minimum_required(VERSION 3.0)
 
-# dependencies #
-if(NOT ${SUBMODULES_NO_BUILD} MATCHES ON)
+if(NOT (${SUBMODULES_NO_BUILD} MATCHES ON))
     add_subdirectory(libdap)
     add_subdirectory(libdap-server-core)
     add_subdirectory(libdap-server-udp)
-endif()
-################
-
-
-if(BUILD_LIB_DAP_SERVER_TESTS)
     enable_testing()
     add_subdirectory(test)
 endif()