summaryrefslogtreecommitdiff
path: root/CMakeOptions.txt
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2014-01-19 00:48:22 +0000
committerJörg Mayer <jmayer@loplof.de>2014-01-19 00:48:22 +0000
commit2a21b01fbbc4c98acf0a02ef9a923d648110eb99 (patch)
tree9d738aa91bd0dcaf17b01825225587193f129903 /CMakeOptions.txt
parent5783452ab27e4f64d75eff9aab5587bdca415e02 (diff)
downloadwireshark-2a21b01fbbc4c98acf0a02ef9a923d648110eb99.tar.gz
Add option to specify special permissions for dumpcap during cmake phase:
set(DUMPCAP_INSTALL_OPTION <val>) where val is one of "normal" "suid" "capabilities" Some things left to do: - Error out in cmake if setcap isn't found or libcap isn't found. - Move multivalue option handling into it's own macro (-file) with value checking svn path=/trunk/; revision=54840
Diffstat (limited to 'CMakeOptions.txt')
-rw-r--r--CMakeOptions.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeOptions.txt b/CMakeOptions.txt
index e1ddb9302a..c3d167eda9 100644
--- a/CMakeOptions.txt
+++ b/CMakeOptions.txt
@@ -56,3 +56,8 @@ option(ENABLE_CARES "Build with c-ares support" ON)
option(ENABLE_NETLINK "Build with libnl support" ON)
# todo Mostly hardcoded
option(ENABLE_KERBEROS "Build with Kerberos support" ON)
+# How to install
+set(DUMPCAP_INSTALL_OPTION "normal" CACHE STRING "Permissions to install")
+set(DUMPCAP_INST_VALS "normal" "suid" "capabilities")
+set_property(CACHE DUMPCAP_INSTALL_OPTION PROPERTY STRINGS ${DUMPCAP_INST_VALS})
+