From c1f82e63ccf3f84e2a2234589caac287d2bf6f71 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Fri, 12 Jan 2024 17:41:49 -0800 Subject: [PATCH] Make tests conditional on BUILD_TESTING --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4983c9d7..2c2d6fe1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -76,7 +76,9 @@ if(LIBPOLY_BUILD_PYTHON_API) endif() -# Configure the C++ tests -enable_testing() -add_subdirectory(test/polyxx) +if (BUILD_TESTING) + # Configure the C++ tests + enable_testing() + add_subdirectory(test/polyxx) +endif()