This is an automated email from the ASF dual-hosted git repository.
bneradt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 2597bc7144 Only set ENABLE_POSIX_CAP default ON on Linux (#10006)
2597bc7144 is described below
commit 2597bc71447447dad46505a7134424f5207b1838
Author: JosiahWI <[email protected]>
AuthorDate: Thu Jul 13 09:36:10 2023 -0500
Only set ENABLE_POSIX_CAP default ON on Linux (#10006)
Fixes #10001
---
CMakeLists.txt | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1300bccb97..2bf78532cf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -53,10 +53,15 @@ option(ENABLE_FAST_SDK "Use fast SDK APIs (default OFF)")
option(ENABLE_JEMALLOC "Use jemalloc (default OFF)")
option(ENABLE_LUAJIT "Use LuaJIT (default OFF)")
option(ENABLE_MIMALLOC "Use mimalloc (default OFF)")
+
+if(CMAKE_SYSTEM_NAME STREQUAL Linux)
+ set(DEFAULT_POSIX_CAP ON)
+endif()
option(ENABLE_POSIX_CAP
- "Use POSIX capabilities, turn OFF to use id switching. (default ON)"
- ON
+ "Use POSIX capabilities, turn OFF to use id switching. (default ON for
Linux)"
+ "${DEFAULT_POSIX_CAP}"
)
+
option(ENABLE_PROFILER "Use gperftools profiler (default OFF)")
set(ENABLE_TPROXY
"AUTO"