diff --git a/CMakeLists.txt b/CMakeLists.txt
index 02c0ec3a20599b2062293e312990d3077a2447f8..6e1e123bf79ab592cae3ac2d82494833fdb172fa 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,7 +1,7 @@
 cmake_minimum_required(VERSION 3.1)
 project (dap_udp_server C)
 
-if(NOT (${SUBMODULES_NO_BUILD} MATCHES ON))
+if(NOT SUBMODULES_NO_BUILD)
 
 #    if ( NOT ( TARGET dap_server_core ) )
 #        add_subdirectory(libdap-server-core)