diff --git a/CMakeLists.txt b/CMakeLists.txt
index ee0c4a3b8150baf39844f6849f5ee8e2862b9783..97fa83961fc93b2692bc05192dccf3a7976ffd49 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,9 +11,6 @@ add_definitions ("-D_GNU_SOURCE")
 
 if(NOT (${SUBMODULES_NO_BUILD} MATCHES ON))
     add_subdirectory(libdap)
-endif()
-
-if(BUILD_DAP_CORE_SERVER_TESTS)
     enable_testing()
     add_subdirectory(test)
 endif()