From 82189ca816108a170ab1641f24d272e108b51e3d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20De=20Keersmaeker?=
 <francois.dekeersmaeker@uclouvain.be>
Date: Wed, 10 Jul 2024 10:09:04 +0200
Subject: [PATCH] CMake: build tests only if not cross-compiling

---
 CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 73dbda5..1fe705e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -31,4 +31,6 @@ set(PARSERS header dns dhcp http igmp ssdp coap)
 
 # Subdirectories containing code
 add_subdirectory(src)
-add_subdirectory(test)
+IF( NOT OPENWRT_CROSSCOMPILING )
+    add_subdirectory(test)
+ENDIF()
-- 
GitLab