From 2a21b01fbbc4c98acf0a02ef9a923d648110eb99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Mayer?= Date: Sun, 19 Jan 2014 00:48:22 +0000 Subject: Add option to specify special permissions for dumpcap during cmake phase: set(DUMPCAP_INSTALL_OPTION ) 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 --- CMakeOptions.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CMakeOptions.txt') 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}) + -- cgit v1.2.1