Add PLUGINDIR cmake setting and define #7027
authorChristian Kamm <mail@ckamm.de>
Thu, 7 Mar 2019 09:58:40 +0000 (10:58 +0100)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:43 +0000 (10:58 +0100)
commitcc840534c04245345b4be92efb5e0a8d7d85410d
tree5a021877b3255389fee15872d5dced50fb865845
parent87bd26bf6cc0e6f68e6cafca9c7c1a219aa026b5
Add PLUGINDIR cmake setting and define #7027

By default, plugins are only searched next to the binary or next to the
other Qt plugins. This optional build variable allows another path to be
configured.

The idea is that on linux the oC packaging probably wants the binary in
something like /opt/owncloud/bin and the plugins in
/opt/owncloud/lib/plugins.

Similarly, distribution packagers probably don't want the plugins next
to the binary or next to the other Qt plugins. This flag allows them to
configure another path that the executable will look in.
CMakeLists.txt
config.h.in
src/gui/application.cpp
src/libsync/vfs/suffix/CMakeLists.txt