You are not logged in.
Hi,
I recently had trouble compiling some project, and what was failing was the `ClangConfig.cmake` script required for doing `find_package(Clang)` in a CMakeLists.txt.
At the beginning of `/usr/lib/cmake/clang/ClangConfig.cmake`, there are these lines:
# Compute the installation prefix from this LLVMConfig.cmake file location.
get_filename_component(CLANG_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(CLANG_INSTALL_PREFIX "${CLANG_INSTALL_PREFIX}" PATH)
get_filename_component(CLANG_INSTALL_PREFIX "${CLANG_INSTALL_PREFIX}" PATH)
get_filename_component(CLANG_INSTALL_PREFIX "${CLANG_INSTALL_PREFIX}" PATH)
which don't work on Arch Linux (they lead to unusable results), and in our case should be replaced by just:
set(CLANG_INSTALL_PREFIX "/usr")
Would it be possible to fix the `clang` Arch package accordingly?
The maintainer seems to be foutrelis.
Last edited by Mapleleaf (2023-06-22 17:08:53)
Offline