From 3265f81d2b9e2fba672c6fa2b2036ff04efb1e08 Mon Sep 17 00:00:00 2001 From: Francois Bleibel <fbleibel@gmail.com> Date: Mon, 21 Jun 2010 16:12:40 +0900 Subject: [PATCH] Now only generated documentation if GENERATE_DOC is ON. --- CMakeLists.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f82b92fa..df0b186f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -106,7 +106,10 @@ ADD_SUBDIRECTORY(unitTesting) # # Documentation produced by doxygen # -INCLUDE(FindDoxygen) -IF(DOXYGEN_FOUND) - add_subdirectory(doc) -ENDIF(DOXYGEN_FOUND) +IF(GENERATE_DOC) + INCLUDE(FindDoxygen) + IF(DOXYGEN_FOUND) + MESSAGE(STATUS "Doxygen found") + add_subdirectory(doc) + ENDIF(DOXYGEN_FOUND) +ENDIF(GENERATE_DOC) -- GitLab