diff --git a/CMakeLists.txt b/CMakeLists.txt
index fe86854956bcd25540fd5d99a810fa582851aa24..8e5bf29f2c2e7451d141b869d078af39e03257ca 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -32,9 +32,6 @@ add_compile_options(-Wall -Werror -Wno-unused-variable -O3)           # Producti
 #add_compile_options(-Wall -Werror -Wno-unused-variable -g)  # Without debug logging
 #add_compile_options(-Wall -Werror -Wno-unused-variable -DDEBUG -g)  # With debug logging
 
-# Custom parsers
-set(PARSERS header dns dhcp http igmp ssdp coap)
-
 # Subdirectories containing code
 add_subdirectory(src)
 add_subdirectory(test)
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index b5fefe49f575073dfb834a11f13c2a0536246891..7e196e954631ebc985925c37a181a8e1414fceaa 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -5,6 +5,6 @@ cmake_minimum_required(VERSION 3.20)
 # Sample profiles
 add_subdirectory(device)
 # Unit tests
-IF( NOT OPENWRT_CROSSCOMPILING )
+IF( NOT (NO_TEST OR OPENWRT_CROSSCOMPILING) )
     add_subdirectory(unit)
 ENDIF()