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/irmd/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/irmd/CMakeLists.txt') diff --git a/src/irmd/CMakeLists.txt b/src/irmd/CMakeLists.txt index 46d49391..32904d59 100644 --- a/src/irmd/CMakeLists.txt +++ b/src/irmd/CMakeLists.txt @@ -109,4 +109,6 @@ endif () install(TARGETS irmd RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR}) add_subdirectory(reg) -add_subdirectory(tests) +if(BUILD_TESTS) + add_subdirectory(tests) +endif () -- cgit v1.2.3