summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 6a2af6b4b..5eaac4b51 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -502,9 +502,6 @@ add_executable(inkview ${view_SRC})
add_dependencies(inkscape inkscape_version)
-if(WITH_DBUS)
- add_dependencies(inkscape inkscape_dbus)
-endif()
set(INKSCAPE_TARGET_LIBS
# order from automake
@@ -529,6 +526,10 @@ set(INKSCAPE_TARGET_LIBS
# Build everything except main and inkview.c in a shared library.
add_library(inkscape_base SHARED ${inkscape_SRC} ${sp_SRC})
+if(WITH_DBUS)
+ add_dependencies(inkscape_base inkscape_dbus)
+endif()
+
# Link the inkscape_base library against all external dependencies
target_link_libraries(inkscape_base ${INKSCAPE_TARGET_LIBS})