aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-08-29 21:49:08 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-08-29 21:51:53 +0200
commit3f6e116314e13c0a7126ab234fe32dd8a5e31658 (patch)
treed67a1a15dd970ee089082a08f6d5802d37eadebf /doc
parent82a63960db771e17bf561c39f5e561b0f3992430 (diff)
downloadcmocka-3f6e116314e13c0a7126ab234fe32dd8a5e31658.tar.gz
cmocka-3f6e116314e13c0a7126ab234fe32dd8a5e31658.tar.xz
cmocka-3f6e116314e13c0a7126ab234fe32dd8a5e31658.zip
cmake: Only support building docs the on cmake >= 3.9
Fixes #2
Diffstat (limited to 'doc')
-rw-r--r--doc/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 4e3dc23..24ed569 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,3 +41,5 @@ if (DOXYGEN_FOUND)
${cmocka-headers_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR})
endif(DOXYGEN_FOUND)
+
+endif() # CMAKE_VERSION