From 4d387c5e9863ae0ef05601e686c7ed1d6629da53 Mon Sep 17 00:00:00 2001 From: Bryan Call Date: Wed, 12 Feb 2025 12:26:53 -0800 Subject: [PATCH] Update the cmake hwloc processing unit support test to use the hwloc include directory --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 76b143953a4..a9934248824 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 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)