This is an automated email from the ASF dual-hosted git repository.
bcall 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 712572a1f4 Update the cmake hwloc processing unit support test to use
the hwloc (#12033)
712572a1f4 is described below
commit 712572a1f4af42cc4f5b3d5c6ecc92e603ecc10f
Author: Bryan Call <[email protected]>
AuthorDate: Tue Feb 18 11:09:48 2025 -0800
Update the cmake hwloc processing unit support test to use the hwloc
(#12033)
include directory
---
CMakeLists.txt | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 76b143953a..a993424882 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -403,11 +403,15 @@ check_symbol_exists(strlcpy string.h HAVE_STRLCPY)
check_symbol_exists(strsignal string.h HAVE_STRSIGNAL)
check_symbol_exists(sysinfo sys/sysinfo.h HAVE_SYSINFO)
check_symbol_exists(prctl "sys/prctl.h" HAVE_PRCTL)
+
+# Test for Processing Unit support in hwloc
if(TS_USE_HWLOC)
+ list(APPEND CMAKE_REQUIRED_INCLUDES ${hwloc_INCLUDE_DIRS})
check_source_compiles(
C "#include <hwloc.h>
int main() { return HWLOC_OBJ_PU; }" HAVE_HWLOC_OBJ_PU
)
+ list(REMOVE_ITEM CMAKE_REQUIRED_INCLUDES ${hwloc_INCLUDE_DIRS})
endif()
check_symbol_exists(SO_TXTIME "sys/socket.h" SO_TXTIME_FOUND)