From ac03bd2199120b83307f64d3c9b4bdf23de562a1 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Mon, 17 Oct 2011 10:36:19 +0200 Subject: [PATCH] Build documentation optionally --- CMakeLists.txt | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c790769..ec8d488 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,8 +56,9 @@ set(CPACK_SOURCE_IGNORE_FILES set(CPACK_SOURCE_PACKAGE_FILE_NAME ${CPACK_PACKAGE_FILE_NAME}) # documentation +option(DOCUMENTATION "Generate API documentation with Doxygen" ON) find_package(Doxygen) -if(DOXYGEN_FOUND) +if(DOCUMENTATION AND DOXYGEN_FOUND) # Set variables set(PACKAGE libi2ncommon) set(top_srcdir ${CMAKE_SOURCE_DIR}) -- 1.7.1