[Openmp-commits] [openmp] [libomp] Fix hwloc include for non-standard paths (PR #184087)
Richard Berger via Openmp-commits
openmp-commits at lists.llvm.org
Mon Mar 2 07:13:35 PST 2026
================
@@ -189,6 +189,14 @@ else()
set(LIBOMP_LINKER_LANGUAGE CXX)
endif()
if(${LIBOMP_USE_HWLOC})
+ target_include_directories(obj.omp
+ PUBLIC
+ "$<BUILD_INTERFACE:${LIBOMP_HWLOC_INCLUDE_DIR}>"
+ "$<INSTALL_INTERFACE:${LIBOMP_HWLOC_INCLUDE_DIR}>"
+ )
+ # omp itself uses obj.omp and thus doesn't need to include hwloc headers
+ # itself. However, we want to propagate the include to consumers of omp (e.g.
+ # libompd).
----------------
rbberger wrote:
The thing to watch out for is whether the above adds a requirement to make it part of an export set.
https://github.com/llvm/llvm-project/pull/184087
More information about the Openmp-commits
mailing list