[Openmp-commits] [openmp] [libomp] Fix hwloc include for non-standard paths (PR #184087)

Michael Kruse via Openmp-commits openmp-commits at lists.llvm.org
Mon Mar 2 04:14:43 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).
----------------
Meinersbur wrote:

Add the comment before the statement it applies to

https://github.com/llvm/llvm-project/pull/184087


More information about the Openmp-commits mailing list