diff options
author | André Apitzsch <andre.apitzsch@etit.tu-chemnitz.de> | 2017-11-10 13:23:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-11-10 13:49:37 (GMT) |
commit | 9cab8570faaa62766e85d09dabd844725926a706 (patch) | |
tree | d063768f779f37205a4cda233d9624f1a83c267b /Modules/FindDoxygen.cmake | |
parent | 45da558742bad36be518e8d95dee0d0ec3793a64 (diff) | |
download | CMake-9cab8570faaa62766e85d09dabd844725926a706.zip CMake-9cab8570faaa62766e85d09dabd844725926a706.tar.gz CMake-9cab8570faaa62766e85d09dabd844725926a706.tar.bz2 |
FindDoxygen: Fix setting of HAVE_DOT in non-backward-compat mode
`DOXYGEN_DOT_FOUND` is only set if `_Doxygen_keep_backward_compat` is
used (when no components are requested), so use `Doxygen_dot_FOUND`
directly. Preserve the "YES" or "NO" value used previously.
Diffstat (limited to 'Modules/FindDoxygen.cmake')
-rw-r--r-- | Modules/FindDoxygen.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/FindDoxygen.cmake b/Modules/FindDoxygen.cmake index 46bf340..d0dd0f1 100644 --- a/Modules/FindDoxygen.cmake +++ b/Modules/FindDoxygen.cmake @@ -832,7 +832,11 @@ doxygen_add_docs() for target ${targetName}") # and Lucent Bell Labs. The other options in this section have no # effect if this option is set to NO. # Doxygen's default value is: NO. - set(DOXYGEN_HAVE_DOT ${DOXYGEN_DOT_FOUND}) + if(Doxygen_dot_FOUND) + set(DOXYGEN_HAVE_DOT "YES") + else() + set(DOXYGEN_HAVE_DOT "NO") + endif() endif() if(NOT DEFINED DOXYGEN_DOT_MULTI_TARGETS) |