From: Simon McVittie Date: Tue, 4 Sep 2018 14:36:43 +0000 (-0700) Subject: cmake: Make Autotools consistency check work in out-of-srcdir builds X-Git-Tag: dbus-1.13.8~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b3abcf28c7d7574833133d0eb23feb5eda48253;p=thirdparty%2Fdbus.git cmake: Make Autotools consistency check work in out-of-srcdir builds Signed-off-by: Simon McVittie --- diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 5329de7ce..d6a7c8a25 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -25,8 +25,8 @@ include(MacrosAutotools) autoinit(../configure.ac) autoversion(dbus) -if(EXISTS ../config.h.in) - autoheaderchecks(../config.h.in ConfigureChecks.cmake config.h.cmake) +if(EXISTS ${CMAKE_SOURCE_DIR}/../config.h.in) + autoheaderchecks(${CMAKE_SOURCE_DIR}/../config.h.in ${CMAKE_SOURCE_DIR}/ConfigureChecks.cmake ${CMAKE_SOURCE_DIR}/config.h.cmake) else() message(STATUS "Generate config.h.in with autogen.sh to enable cmake header difference check.") endif()