summaryrefslogtreecommitdiff
path: root/dbus
diff options
context:
space:
mode:
authorJordan Williams <jordan@jwillikers.com>2022-07-23 06:21:44 -0500
committerJordan Williams <jordan@jwillikers.com>2022-07-25 14:14:57 -0500
commitfac146f44d235a1c8c810de09c9582a0dd28b406 (patch)
treed3cf0a07fc883e29bfacd3cdc68d33647126d295 /dbus
parentad5836cb0d24b0f4f35ee6d57392e21570f56689 (diff)
downloaddbus-fac146f44d235a1c8c810de09c9582a0dd28b406.tar.gz
Use project relative paths in CMake files
This makes it possible for projects to incorporate D-Bus as a CMake sub-project in a larger CMake project. Before this PR, doing so would result in many errors. This is because CMAKE_SOURCE_DIR and CMAKE_BINARY_DIR would point to directories above the D-Bus project. Using paths relative to the project directory, PROJECT_SOURCE_DIR and PROJECT_BINARY_DIR, corrects for this.
Diffstat (limited to 'dbus')
-rw-r--r--dbus/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbus/CMakeLists.txt b/dbus/CMakeLists.txt
index 4d92b79f..42442cce 100644
--- a/dbus/CMakeLists.txt
+++ b/dbus/CMakeLists.txt
@@ -97,7 +97,7 @@ set(DBUS_LIB_HEADERS
dbus-transport-protected.h
dbus-uuidgen.h
dbus-watch.h
- ${CMAKE_BINARY_DIR}/config.h
+ ${PROJECT_BINARY_DIR}/config.h
)
if(UNIX)
set(DBUS_LIB_HEADERS ${DBUS_LIB_HEADERS}