[LLVMbugs] [Bug 12157] New: llvmconfig.cmake.in make cmake installations not relocatable

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 1 19:08:07 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=12157

             Bug #: 12157
           Summary: llvmconfig.cmake.in make cmake installations not
                    relocatable
           Product: Build scripts
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: cmake
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: humeafo at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


the installed llvm package is not relocatable and has reference to the source
tree, this problem maybe fixed using dynamic relative path calculations as
follows:

line21:
set(LLVM_TOOLS_BINARY_DIR @LLVM_TOOLS_BINARY_DIR@)

should be replaced to 
set(LLVM_TOOLS_BINARY_DIR ${CMAKE_CURRENT_LIST_DIR}/../../bin)

line 34
set(LLVM_INSTALL_PREFIX @LLVM_INSTALL_PREFIX@)

to:

set(LLVM_INSTALL_PREFIX ${CMAKE_CURRENT_LIST_DIR}/../..)

line 136:

    "@LLVM_SOURCE_DIR@/cmake/modules")
to
    ${LLVM_INSTALL_PREFIX}/share/llvm/cmake)

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list