diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-10-23 18:51:56 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-10-23 18:51:56 (GMT) |
commit | 2e3eebc20ab7ceefd3f87899babb14e74a037d04 (patch) | |
tree | bda0cee41af5ee4f571231aa3b39e74180379aaa /Modules/FindDoxygen.cmake | |
parent | d1a9c93119958a1a394fe0dde5814cd6a8f3f748 (diff) | |
download | CMake-2e3eebc20ab7ceefd3f87899babb14e74a037d04.zip CMake-2e3eebc20ab7ceefd3f87899babb14e74a037d04.tar.gz CMake-2e3eebc20ab7ceefd3f87899babb14e74a037d04.tar.bz2 |
ENH: put in backwards compatibility for older cmake
Diffstat (limited to 'Modules/FindDoxygen.cmake')
-rw-r--r-- | Modules/FindDoxygen.cmake | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/Modules/FindDoxygen.cmake b/Modules/FindDoxygen.cmake index c055f43..23ac5a3 100644 --- a/Modules/FindDoxygen.cmake +++ b/Modules/FindDoxygen.cmake @@ -3,7 +3,11 @@ # With the OS X GUI version, it likes to be installed to /Applications and # it contains the doxygen executable in the bundle. In the versions I've # seen, it is located in Resources, but in general, more often binaries are -# located in MacOS. +# located in MacOS. This code sets the following variables: +# DOXYGEN_EXECUTABLE = The path to the doxygen command. +# DOXYGEN_DOT_EXECUTABLE = The path to the dot program used by doxygen. +# DOXYGEN = same as DOXYGEN_EXECUTABLE for backwards compatibility +# DOT = same as DOXYGEN_DOT_EXECUTABLE for backwards compatibility # The official Doxygen.app that is distributed for OS X uses non-standard # conventions. Instead of the command-line "doxygen" tool being placed in @@ -87,10 +91,14 @@ FIND_PATH(DOXYGEN_DOT_PATH # Restore the old app-bundle setting setting SET(CMAKE_FIND_APPBUNDLE ${TEMP_DOXYGEN_SAVE_CMAKE_FIND_APPBUNDLE}) +# Backwards compatibility for CMake4.3 and less +SET (DOXYGEN ${DOXYGEN_EXECUTABLE} ) +SET (DOT ${DOXYGEN_DOT_EXECUTABLE} ) + MARK_AS_ADVANCED( - DOXYGEN_FOUND, - DOXYGEN_EXECUTABLE, - DOXYGEN_DOT_FOUND, - DOXYGEN_DOT_EXECUTABLE, - DOXYGEN_DOT_PATH, + DOXYGEN_FOUND + DOXYGEN_EXECUTABLE + DOXYGEN_DOT_FOUND + DOXYGEN_DOT_EXECUTABLE + DOXYGEN_DOT_PATH ) |