diff options
author | Rechi <Rechi@users.noreply.github.com> | 2020-10-31 18:27:58 +0000 |
---|---|---|
committer | Rechi <Rechi@users.noreply.github.com> | 2020-10-31 18:27:58 +0000 |
commit | 9647d7c156c196a4ef9304d01d24f95875f75cff (patch) | |
tree | a108407a65f912b38ab191be5909f2c32eb4a489 /CMakeLists.txt | |
parent | bb0699db41d50a613de88f2bbe8124d4edf269d3 (diff) |
[cmake] allow doxygen documentation generation for cross builds
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 348bef4048..e30083d2f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -415,16 +415,16 @@ if(CORE_HOST_IS_TARGET AND ENABLE_TESTING) message(FATAL_ERROR "Code coverage not (yet) implemented for platform ${CORE_SYSTEM_NAME}") endif() endif() +endif() - # Documentation - find_package(Doxygen) - if(DOXYGEN_FOUND) - add_custom_target(doc - COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_SOURCE_DIR}/docs/doxygen/Doxyfile.doxy - COMMAND ${CMAKE_COMMAND} -E echo "Documentation built to: file://${CMAKE_SOURCE_DIR}/docs/html/index.html" - WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/docs/doxygen - COMMENT "Generating Doxygen documentation" VERBATIM) - endif() +# Documentation +find_package(Doxygen) +if(DOXYGEN_FOUND) + add_custom_target(doc + COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_SOURCE_DIR}/docs/doxygen/Doxyfile.doxy + COMMAND ${CMAKE_COMMAND} -E echo "Documentation built to: file://${CMAKE_SOURCE_DIR}/docs/html/index.html" + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/docs/doxygen + COMMENT "Generating Doxygen documentation" VERBATIM) endif() # link wrapper |