diff --git a/CMakeLists.txt b/CMakeLists.txt index e8705832..c22590e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,7 +79,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()