]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
cmake: remove obsolete variable DBUS_SOURCE_DIR
authorRalf Habacker <ralf.habacker@freenet.de>
Fri, 18 Feb 2022 07:33:15 +0000 (08:33 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Mon, 21 Feb 2022 14:14:27 +0000 (14:14 +0000)
This issue has been reported at #377

Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
CMakeLists.txt

index a60428a0ab3a4a16590192549dfadda8981b8595..0e1fc413c8d3230d4fa1f3a116c8b5c2152574ab 100644 (file)
@@ -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}                    ")