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>
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")