From 704f364ac1f33a30adfa157203484eb7fb96379f Mon Sep 17 00:00:00 2001 From: Colden Cullen Date: Mon, 25 Nov 2019 17:08:36 -0800 Subject: [PATCH] Respect BUILD_TESTING (#22) --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()