]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
cmake: Make Autotools consistency check work in out-of-srcdir builds
authorSimon McVittie <smcv@collabora.com>
Tue, 4 Sep 2018 14:36:43 +0000 (07:36 -0700)
committerSimon McVittie <smcv@collabora.com>
Mon, 15 Oct 2018 12:52:06 +0000 (13:52 +0100)
Signed-off-by: Simon McVittie <smcv@collabora.com>
cmake/CMakeLists.txt

index 5329de7cebd8fa0db8f8ee0ad2c70151ea8bfbb6..d6a7c8a25431d2ebd00a1dd693afefd7de2c9dff 100644 (file)
@@ -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()