From 66a0f14a0c245f7209e7f2c81a2c1c8b10f2c8e7 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 29 Aug 2018 21:50:55 +0200 Subject: cmake: Only support building docs the on cmake >= 3.9 Signed-off-by: Andreas Schneider --- doc/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'doc') 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 -- cgit v1.2.3