Skip to content

Commit

Permalink
Update the cmake hwloc processing unit support test to use the hwloc
Browse files Browse the repository at this point in the history
include directory
  • Loading branch information
bryancall committed Feb 12, 2025
1 parent ad02d7d commit 4d387c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4d387c5

Please sign in to comment.