From 90c6010d0f790af8a652213ffc1ee8db1cfb9b6d Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Sun, 11 Dec 2011 12:27:14 -0500 Subject: docs: if DOXYGEN_ENABLE is false, don't build the swigdocs, either. --- cmake/Modules/GrSwig.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cmake/Modules') diff --git a/cmake/Modules/GrSwig.cmake b/cmake/Modules/GrSwig.cmake index 47e18085b..b8aa488aa 100644 --- a/cmake/Modules/GrSwig.cmake +++ b/cmake/Modules/GrSwig.cmake @@ -33,8 +33,7 @@ include(GrPython) # - GR_SWIG_DOCS_TARGET_DEPS ######################################################################## function(GR_SWIG_MAKE_DOCS output_file) - find_package(Doxygen) - if(DOXYGEN_FOUND) + if(ENABLE_DOXYGEN) #setup the input files variable list, quote formated set(input_files) -- cgit From e24ad4b104cc6a7ef6e516ade324cfeea752d1c5 Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Sun, 11 Dec 2011 13:37:11 -0500 Subject: docs: fixed ending of if statement. --- cmake/Modules/GrSwig.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmake/Modules') diff --git a/cmake/Modules/GrSwig.cmake b/cmake/Modules/GrSwig.cmake index b8aa488aa..f49fc731c 100644 --- a/cmake/Modules/GrSwig.cmake +++ b/cmake/Modules/GrSwig.cmake @@ -83,9 +83,9 @@ function(GR_SWIG_MAKE_DOCS output_file) WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/docs/doxygen ) - else(DOXYGEN_FOUND) + else(ENABLE_DOXYGEN) file(WRITE ${output_file} "\n") #no doxygen -> empty file - endif(DOXYGEN_FOUND) + endif(ENABLE_DOXYGEN) endfunction(GR_SWIG_MAKE_DOCS) ######################################################################## -- cgit