diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b397c73..2a0f1866 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.2.0) +cmake_minimum_required(VERSION 3.3.0) cmake_policy(SET CMP0048 NEW) project(libssh VERSION 0.8.0 LANGUAGES C) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 31242811..079c62b2 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -1,5 +1,9 @@ # # Build the documentation # -include(UseDoxygen OPTIONAL) +find_package(Doxygen) +if (DOXYGEN_FOUND) + doxygen_add_docs(docs + ${CMAKE_CURRENT_SOURCE_DIR}) +endif()