Skip to content

Hardcoded /lib/cmake path breaks on /lib64 systems #1467

@bwarden

Description

@bwarden

Clear Linux, a 64-bit distribution, uses /usr/lib64 for libraries and /usr/lib64/cmake for corresponding cmake helpers in. Hard-coding /lib/cmake breaks builds in this environment, and in any others that reserve /usr/lib for 32-bit fallback libraries.

clspv/lib/CMakeLists.txt

Lines 142 to 148 in 55000a5

if(${EXTERNAL_LLVM} EQUAL 1)
include(${CLSPV_LLVM_BINARY_DIR}/lib/cmake/llvm/LLVMConfig.cmake)
llvm_map_components_to_libnames(CLSPV_LLVM_LINKS ${CLSPV_LLVM_COMPONENTS})
include(${CLSPV_LLVM_BINARY_DIR}/lib/cmake/clang/ClangConfig.cmake)
endif()

if(${EXTERNAL_LLVM} EQUAL 1)
include(${CLSPV_LLVM_BINARY_DIR}/lib/cmake/llvm/LLVMConfig.cmake)
llvm_map_components_to_libnames(CLSPV_LLVM_LINKS ${CLSPV_LLVM_COMPONENTS})
endif()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions