From a9fe22921a8189c63d5a67c5c96918f38f26c582 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Sun, 4 Sep 2011 21:41:52 -0400 Subject: [PATCH] CMakeLists.txt: Call enable_testing before processing cunit subdirectory Otherwise, add_test does nothing. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1380dae..6fd61a0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -118,8 +118,8 @@ endif() # Build CUnit find_optional_package(CUnit) if(CUNIT_FOUND) - add_subdirectory(cunit) enable_testing() + add_subdirectory(cunit) endif() # Sub-directories -- 2.7.4