llvm@14: Fix build: Add hwloc include directory for libompd (#29757)
This commit is contained in:
parent
01609b3111
commit
cf21fd837f
2 changed files with 16 additions and 0 deletions
|
@ -0,0 +1,13 @@
|
||||||
|
--- a/openmp/libompd/src/CMakeLists.txt
|
||||||
|
+++ b/openmp/libompd/src/CMakeLists.txt
|
||||||
|
@@ -44,6 +44,10 @@
|
||||||
|
${LIBOMP_SRC_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
+if(${LIBOMP_USE_HWLOC})
|
||||||
|
+ include_directories(${LIBOMP_HWLOC_INSTALL_DIR}/include)
|
||||||
|
+endif()
|
||||||
|
+
|
||||||
|
INSTALL( TARGETS ompd
|
||||||
|
LIBRARY DESTINATION ${OPENMP_INSTALL_LIBDIR}
|
||||||
|
ARCHIVE DESTINATION ${OPENMP_INSTALL_LIBDIR}
|
|
@ -358,6 +358,9 @@ class Llvm(CMakePackage, CudaPackage):
|
||||||
# avoid build failed with Fujitsu compiler
|
# avoid build failed with Fujitsu compiler
|
||||||
patch('llvm13-fujitsu.patch', when='@13 %fj')
|
patch('llvm13-fujitsu.patch', when='@13 %fj')
|
||||||
|
|
||||||
|
# patch for missing hwloc.h include for libompd
|
||||||
|
patch('llvm14-hwloc-ompd.patch', when='@14')
|
||||||
|
|
||||||
# The functions and attributes below implement external package
|
# The functions and attributes below implement external package
|
||||||
# detection for LLVM. See:
|
# detection for LLVM. See:
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue