Move Doxygen test to main CMake scope

Fixes https://gitlab.com/kicad/code/kicad/issues/4468
This commit is contained in:
Ian McInerney 2020-05-17 18:29:27 +01:00
parent 8dc6f8e82b
commit d72a778f19
3 changed files with 3 additions and 2 deletions

View File

@ -837,6 +837,8 @@ endif()
#================================================
# Add the documentation
#================================================
find_package( Doxygen )
add_subdirectory( Documentation )
# Generate config.h.

View File

@ -21,8 +21,6 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
#
find_package( Doxygen )
if( DOXYGEN_FOUND )
add_custom_target( doxygen-docs
${CMAKE_COMMAND} -E remove_directory Documentation/doxygen

View File

@ -66,6 +66,7 @@ if(DOXYGEN_FOUND AND DOXYTAG2ZEALDB AND SED)
-P ${CMAKE_MODULE_PATH}/CreateDocsetDoxyfile.cmake
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/
OUTPUT ${DOCSET_DOXYFILE}
DEPENDS ${CMAKE_BINARY_DIR}/kicad_build_version.h
COMMENT "Modifying doxyfile for docset creation"
)