From b7086e051347cff5a71b63a5010e4c280c4adf4b Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Sat, 18 Apr 2015 21:14:11 +0200 Subject: [PATCH] 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 --- cmake/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 1819dbd..6fbe23e 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") -- 2.7.4