summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@sag.eu>2015-04-18 21:14:11 +0200
committerRalf Habacker <ralf.habacker@freenet.de>2015-04-20 12:25:32 +0200
commitb7086e051347cff5a71b63a5010e4c280c4adf4b (patch)
treefea053aacffaf04fdb3bae4a3e6a3876babc2dcb /cmake
parentd5e7e2794ecc213f5e3332a3bc36aa1708bdb637 (diff)
cmake: Dump missing config header checks only if config.h.in is present.
config.h.in is only generated by running autogen.sh. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=90089 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
index 1819dbd6..6fbe23e7 100644
--- a/cmake/CMakeLists.txt
+++ b/cmake/CMakeLists.txt
@@ -24,7 +24,11 @@ endif()
include(MacrosAutotools)
autoinit(../configure.ac)
autoversion(dbus)
-autoheaderchecks(../config.h.in ConfigureChecks.cmake config.h.cmake)
+
+if(EXISTS ../config.h.in)
+ autoheaderchecks(../config.h.in ConfigureChecks.cmake config.h.cmake)
+endif()
+
# used by file version info
set (DBUS_PATCH_VERSION "0")