diff options
author | Campbell Barton <campbell@blender.org> | 2022-06-27 09:33:58 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-06-27 09:49:21 +0300 |
commit | 3a8fa77c1fd21b9266afe549f9bd308d74439dd0 (patch) | |
tree | 7c746eaf2541da539b170757be711ae0c3245834 /CMakeLists.txt | |
parent | 2b6c633b63b1ed075af1f988f677b7b7cf9445b1 (diff) |
GHOST/Wayland: Add a build time option for DBUS, disable by default
Add WITH_GHOST_WAYLAND_DBUS option, so Blender can be built without
DBUS support. Currently it's only used to access the cursor theme.
Without this the "default" cursors are used instead.
Disabling this since it adds an additional dependency for a minor gain
in functionality, with the benefit of removing a library requirement.
There is also a problem where Blender hangs on startup for ~5 seconds
when DBUS isn't running. Eventually it would be good to be able to avoid
this problem without a build option.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 60d980930c1..3c3127e0f64 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -226,6 +226,9 @@ if(UNIX AND NOT (APPLE OR HAIKU)) if (WITH_GHOST_WAYLAND) option(WITH_GHOST_WAYLAND_LIBDECOR "Optionally build with LibDecor window decorations" OFF) mark_as_advanced(WITH_GHOST_WAYLAND_LIBDECOR) + + option(WITH_GHOST_WAYLAND_DBUS "Optionally build with DBUS support (used for Cursor themes). May hang on startup systems where DBUS is not used." OFF) + mark_as_advanced(WITH_GHOST_WAYLAND_DBUS) endif() endif() |