From c34b835c51014f1d626323e3aad82cf0a1a9d83b Mon Sep 17 00:00:00 2001 From: Esa Korhonen Date: Thu, 30 Apr 2020 17:55:23 +0300 Subject: [PATCH] Build maxbase tests only if BUILD_TESTS in on --- maxutils/maxbase/src/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/maxutils/maxbase/src/CMakeLists.txt b/maxutils/maxbase/src/CMakeLists.txt index f6186ebd5..f5d2108fb 100644 --- a/maxutils/maxbase/src/CMakeLists.txt +++ b/maxutils/maxbase/src/CMakeLists.txt @@ -20,4 +20,7 @@ target_link_libraries(maxbase systemd) endif() set_target_properties(maxbase PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs) -add_subdirectory(test) + +if (BUILD_TESTS) + add_subdirectory(test) +endif() \ No newline at end of file