From ed8a62f1cdca19c09caf52f2e36f45dafaa9cff8 Mon Sep 17 00:00:00 2001 From: Thijs Paelman Date: Mon, 3 Nov 2025 22:40:55 +0100 Subject: build: Only add tests when BUILD_TESTING is ON By default, BUILD_TESTING = ON due to the inclusion of the CTest module. Signed-off-by: Thijs Paelman Signed-off-by: Sander Vrijders --- src/ipcpd/unicast/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/ipcpd/unicast') diff --git a/src/ipcpd/unicast/CMakeLists.txt b/src/ipcpd/unicast/CMakeLists.txt index ced045e6..a9155353 100644 --- a/src/ipcpd/unicast/CMakeLists.txt +++ b/src/ipcpd/unicast/CMakeLists.txt @@ -71,6 +71,8 @@ endif () install(TARGETS ipcpd-unicast RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR}) -add_subdirectory(pff/tests) -add_subdirectory(routing/tests) -add_subdirectory(dir/tests) +if(BUILD_TESTS) + add_subdirectory(pff/tests) + add_subdirectory(routing/tests) + add_subdirectory(dir/tests) +endif () -- cgit v1.2.3