cmake: Dump missing config header checks only if config.h.in is present.
authorRalf Habacker <ralf.habacker@sag.eu>
Sat, 18 Apr 2015 19:14:11 +0000 (21:14 +0200)
committerRalf Habacker <ralf.habacker@freenet.de>
Mon, 20 Apr 2015 10:25:32 +0000 (12:25 +0200)
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>
cmake/CMakeLists.txt

index 1819dbd..6fbe23e 100644 (file)
@@ -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")