From b6dd487d4330bf74fb3868704e23563a25b52b6a Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Fri, 18 Feb 2022 08:33:15 +0100 Subject: [PATCH] cmake: remove obsolete variable DBUS_SOURCE_DIR This issue has been reported at #377 Signed-off-by: Ralf Habacker --- CMakeLists.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a60428a0a..0e1fc413c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -202,9 +202,6 @@ set(_GNU_SOURCE 1) # do config checks include(ConfigureChecks) -# @TODO: how to remove last dir from ${CMAKE_SOURCE_DIR} ? -set(DBUS_SOURCE_DIR ${CMAKE_SOURCE_DIR}/..) - # make some more macros available include(MacroLibrary) @@ -421,7 +418,7 @@ enable_testing() #macro_ensure_out_of_source_build("dbus requires an out of source build. Please create a separate build directory and run 'cmake path_to_dbus [options]' there.") # ... and warn in case of an earlier in-source build -#set(generatedFileInSourceDir EXISTS ${dbus_SOURCE_DIR}/config.h) +#set(generatedFileInSourceDir EXISTS ${CMAKE_SOURCE_DIR}/config.h) #if(${generatedFileInSourceDir}) # message(STATUS "config.h exists in your source directory.") #endif(${generatedFileInSourceDir}) @@ -726,7 +723,7 @@ message(" install libexecdir: ${CMAKE_INSTALL_FULL_LIBEXECDIR} " message(" install bindir: ${CMAKE_INSTALL_FULL_BINDIR} ") message(" install sysconfdir: ${CMAKE_INSTALL_FULL_SYSCONFDIR} ") message(" install datadir: ${CMAKE_INSTALL_FULL_DATADIR} ") -message(" source code location: ${DBUS_SOURCE_DIR} ") +message(" source code location: ${CMAKE_SOURCE_DIR} ") message(" build dir: ${CMAKE_BINARY_DIR} ") message(" c compiler: ${C_COMPILER} ") message(" cflags: ${CMAKE_C_FLAGS} ") -- 2.47.3