From f56a5102a9bf87b724f6c191dab07f6631c77327 Mon Sep 17 00:00:00 2001 From: ImagineHaxing Date: Wed, 5 Aug 2026 10:30:22 +0300 Subject: [PATCH] Fix building without testing enabled --- Protocol/CMakeLists.txt | 5 ++++- Server/Stun/CMakeLists.txt | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Protocol/CMakeLists.txt b/Protocol/CMakeLists.txt index fdfb8f4..1d354ca 100644 --- a/Protocol/CMakeLists.txt +++ b/Protocol/CMakeLists.txt @@ -1,2 +1,5 @@ add_subdirectory(src) -add_subdirectory(tests) + +if(BUILD_TESTING) + add_subdirectory(tests) +endif() diff --git a/Server/Stun/CMakeLists.txt b/Server/Stun/CMakeLists.txt index fdfb8f4..1d354ca 100644 --- a/Server/Stun/CMakeLists.txt +++ b/Server/Stun/CMakeLists.txt @@ -1,2 +1,5 @@ add_subdirectory(src) -add_subdirectory(tests) + +if(BUILD_TESTING) + add_subdirectory(tests) +endif()