From 87ea0392b477cf1397d835a48c1e7fdaceeed79b Mon Sep 17 00:00:00 2001 From: John Bradley Date: Tue, 12 May 2015 11:40:09 -0500 Subject: [PATCH] Only build tests if specified by BUILD_TESTS --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ae0ae93b3..3dcdccbc5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,7 +87,9 @@ if(NOT INSTALLER_RUN) add_subdirectory(libobs) add_subdirectory(obs) add_subdirectory(plugins) - add_subdirectory(test) + if (BUILD_TESTS) + add_subdirectory(test) + endif() add_subdirectory(cmake/helper_subdir) else()