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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs