From 80a5a86f53602d350fda59771c1077460869f105 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Thu, 5 Mar 2015 20:48:09 +0100 Subject: [PATCH] Check config.h differences with cmake build system only when config.h.in is present. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=85418 --- cmake/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 5094990..2f89b41 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -17,7 +17,11 @@ endif(COMMAND cmake_policy) include(MacrosAutotools) autoinit(../configure.ac) autoversion(dbus) -autoheaderchecks(../config.h.in ConfigureChecks.cmake config.h.cmake) +if(EXISTS ${CMAKE_SOURCE_DIR}/../config.h.in) + autoheaderchecks(../config.h.in ConfigureChecks.cmake config.h.cmake) +else() + message(STATUS "Generate config.h.in with autogen.sh to enable cmake header difference check.") +endif() # used by file version info set (DBUS_PATCH_VERSION "0") -- 1.8.4.5