diff options
author | João Valverde <j@v6e.pt> | 2022-03-28 12:15:47 +0100 |
---|---|---|
committer | A Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2022-03-28 13:23:28 +0000 |
commit | c451e572e57de969b5c8fbc263ae5eeb62efd00c (patch) | |
tree | 13e3d2e6a7b187af5c6f46ecaede4cf8da535daf /WiresharkConfig.cmake.in | |
parent | 842f53c329e6abf28a8c320faebcae252312eaf8 (diff) |
plugins.example: Make installation relocatable
Fixes "make install" to be relocatable using DESTDIR. For that
we cannot use an absolute path as intallation directory target.
This is useful mostly to implement packaging using CPack.
It is a bit awkward to configure a default CMAKE_INSTALL_PREFIX
using WiresharkConfig.cmake but it seems to be working OK.
The previous non-relocatable behaviour may still be useful. It is
relegated to a custom "copy_plugin" target.
Diffstat (limited to 'WiresharkConfig.cmake.in')
-rw-r--r-- | WiresharkConfig.cmake.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/WiresharkConfig.cmake.in b/WiresharkConfig.cmake.in index 500c1e0f6c..a604054d92 100644 --- a/WiresharkConfig.cmake.in +++ b/WiresharkConfig.cmake.in @@ -4,9 +4,11 @@ set(Wireshark_PATCH_VERSION @PROJECT_PATCH_VERSION@) set(Wireshark_VERSION "@PROJECT_VERSION@") set(Wireshark_PLUGINS_ENABLED @HAVE_PLUGINS@) +set(Wireshark_PLUGIN_LIBDIR "@PLUGIN_INSTALL_VERSION_LIBDIR@") @PACKAGE_INIT@ +set_and_check(Wireshark_INSTALL_PREFIX "${PACKAGE_PREFIX_DIR}") set_and_check(Wireshark_LIB_DIR "@PACKAGE_CMAKE_INSTALL_LIBDIR@") set_and_check(Wireshark_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@/wireshark") if(Wireshark_PLUGINS_ENABLED) |