From 7b3abcf28c7d7574833133d0eb23feb5eda48253 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 4 Sep 2018 07:36:43 -0700 Subject: [PATCH] cmake: Make Autotools consistency check work in out-of-srcdir builds Signed-off-by: Simon McVittie --- cmake/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() -- 2.47.3