From: Ralf Habacker Date: Sat, 18 Apr 2015 19:14:11 +0000 (+0200) Subject: cmake: Dump missing config header checks only if config.h.in is present. X-Git-Tag: dbus-1.9.16~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7086e051347cff5a71b63a5010e4c280c4adf4b;p=thirdparty%2Fdbus.git 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 --- diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 1819dbd68..6fbe23e7d 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")