aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 59a23438..4b00123b 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -1,6 +1,8 @@
#
# Build the documentation
#
+if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.9.0")
+
find_package(Doxygen)
if (DOXYGEN_FOUND)
@@ -39,4 +41,6 @@ if (DOXYGEN_FOUND)
${CMAKE_SOURCE_DIR}/include/libssh
${CMAKE_SOURCE_DIR}/src
${CMAKE_CURRENT_SOURCE_DIR})
-endif()
+endif() # DOXYGEN_FOUND
+
+endif() # CMAKE_VERSION