From bfb24f93d5939ad83c3ad36a84f769203f9cbb08 Mon Sep 17 00:00:00 2001
From: dpuzyrkov <dpuzyrkov@gmail.com>
Date: Fri, 26 Aug 2022 17:51:06 +0300
Subject: [PATCH] [*] really exclude network-monitor if
 OFF_CORE_CELLFRAME_SDK_TESTS_OFF matches "network-monitor"

---
 dap-sdk/core/test/CMakeLists.txt | 6 +++++-
 dap-sdk/core/test/main.c         | 2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/dap-sdk/core/test/CMakeLists.txt b/dap-sdk/core/test/CMakeLists.txt
index 17abd9a9b7..06e68949d6 100755
--- a/dap-sdk/core/test/CMakeLists.txt
+++ b/dap-sdk/core/test/CMakeLists.txt
@@ -7,7 +7,11 @@ file(GLOB SRCS *.c)
 
 
 if(UNIX)
-    file(GLOB PLATROFM_DEP_SRC unix/*.c unix/*.h)
+if (OFF_CORE_CELLFRAME_SDK_TESTS_OFF MATCHES "network-monitor")
+    file(GLOB PLATROFM_DEP_SRC unix/dap_cpu*.c unix/dap_process*.c unix/dap_cpu*.h unix/dap_process*.h)  
+  else()
+    file(GLOB PLATROFM_DEP_SRC unix/*.c unix/*.h)  
+  endif()
 endif()
 
 add_executable(${PROJECT_NAME} ${SRCS} ${PLATROFM_DEP_SRC})  
diff --git a/dap-sdk/core/test/main.c b/dap-sdk/core/test/main.c
index 71b896bce0..d223543639 100755
--- a/dap-sdk/core/test/main.c
+++ b/dap-sdk/core/test/main.c
@@ -5,7 +5,7 @@
 #include "dap_circular_test.h"
 #include "dap_process_mem_test.h"
 #include "dap_cpu_monitor_test.h"
-#ifndef DDAP_NETWORK_MONITOR_TEST_OFF
+#ifndef DAP_NETWORK_MONITOR_TEST_OFF
 #include "dap_network_monitor.h"
 #include "dap_network_monitor_test.h"
 #endif
-- 
GitLab