diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b709eea..0f529756 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -158,5 +158,7 @@ install(FILES ${EXPORT_MODULES} if (NOT CMAKE_CROSSCOMPILING AND NOT BYO_CRYPTO) include(CTest) - add_subdirectory(tests) + if (BUILD_TESTING) + add_subdirectory(tests) + endif() endif()