Move Doxygen test to main CMake scope
Fixes https://gitlab.com/kicad/code/kicad/issues/4468
This commit is contained in:
parent
8dc6f8e82b
commit
d72a778f19
|
@ -837,6 +837,8 @@ endif()
|
|||
#================================================
|
||||
# Add the documentation
|
||||
#================================================
|
||||
find_package( Doxygen )
|
||||
|
||||
add_subdirectory( Documentation )
|
||||
|
||||
# Generate config.h.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue