diff options
author | Michael Gottesman <mgottesman@apple.com> | 2013-08-28 20:28:32 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2013-08-28 20:28:32 +0000 |
commit | b7cb63590731f4d87ca79fe688b01af36b51af72 (patch) | |
tree | 690f76214fe26ab6d02f1bac176b8c8b9ddd9dca /cmake | |
parent | 2957273b888dabe8be8e2fa5ac691e39879685c4 (diff) | |
download | external_llvm-b7cb63590731f4d87ca79fe688b01af36b51af72.zip external_llvm-b7cb63590731f4d87ca79fe688b01af36b51af72.tar.gz external_llvm-b7cb63590731f4d87ca79fe688b01af36b51af72.tar.bz2 |
[cmake] Created an aggregate doxygen target for generating doxygen documentation for llvm/all subprojects. Renamed llvm's doxygen generation command to doxygen-llvm.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189506 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-x | cmake/config-ix.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index 3bf7583..3f57e23 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -465,6 +465,15 @@ set(LLVM_PREFIX ${CMAKE_INSTALL_PREFIX}) if (LLVM_ENABLE_DOXYGEN) message(STATUS "Doxygen enabled.") find_package(Doxygen) + + if (DOXYGEN_FOUND) + # If we find doxygen and we want to enable doxygen by default create a + # global aggregate doxygen target for generating llvm and any/all + # subprojects doxygen documentation. + if (LLVM_BUILD_DOCS) + add_custom_target(doxygen ALL) + endif() + endif() else() message(STATUS "Doxygen disabled.") endif() |