File openmp-fix-install-paths.patch of Package rocm-llvm
diff --git a/openmp/libomptarget/hostexec/CMakeLists.txt b/openmp/libomptarget/hostexec/CMakeLists.txt
index dc8b255b3..0de5435bb 100644
--- a/openmp/libomptarget/hostexec/CMakeLists.txt
+++ b/openmp/libomptarget/hostexec/CMakeLists.txt
@@ -218,5 +218,5 @@ foreach(archname ${HOSTRPC_ARCHS})
endforeach() # end for each mcpu
endforeach() # end foreach archs
-install(FILES ${h_file} DESTINATION ${DEVEL_PACKAGE}lib/clang/${LLVM_VERSION_MAJOR}/include)
+install(FILES ${h_file} DESTINATION ${DEVEL_PACKAGE}${LIBOMP_HEADERS_INSTALL_PATH})
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/disable_dynamic_devmem.ll" DESTINATION ${DEVEL_PACKAGE}${OPENMP_INSTALL_LIBDIR})
diff --git a/openmp/libomptarget/test/ompTest/CMakeLists.txt b/openmp/libomptarget/test/ompTest/CMakeLists.txt
index 58b6ef9d6..549e51318 100644
--- a/openmp/libomptarget/test/ompTest/CMakeLists.txt
+++ b/openmp/libomptarget/test/ompTest/CMakeLists.txt
@@ -66,7 +66,7 @@ configure_file(
${omptest_BINARY_DIR}/cmake/omptest-config.cmake @ONLY)
install(FILES ${omptest_BINARY_DIR}/cmake/omptest-config.cmake
- DESTINATION lib/cmake/omptest)
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/omptest)
# Install libomptest header files: Copy the whole include dir
install(DIRECTORY ./include