From 6ec9cc2b7d4b0b44975049af0185142c0ce86625 Mon Sep 17 00:00:00 2001 From: Stephen Roderick Date: Mon, 2 Nov 2009 20:38:23 -0500 Subject: [PATCH] [cmake] Enable CTest and testing based on our ENABLE flag --- CMakeLists.txt | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b601e5..b9028c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,8 +54,10 @@ ENDIF ( NOT CMAKE_BUILD_TYPE STREQUAL "None") # # ################################################### -INCLUDE(CTest) -ENABLE_TESTING() +IF(ENABLE_TESTS) + INCLUDE(CTest) + ENABLE_TESTING() +ENDIF() IF(BUILD_TESTING) SET(BUILDNAME "${BUILDNAME}" CACHE STRING "Name of build on the dashboard") MARK_AS_ADVANCED(BUILDNAME) -- 1.6.4.1