[llvm-bugs] New line issue in clang+llvm-3.7.0-x86_64-apple-darwin/share/llvm/cmake/LLVMConfig.cmake

kutio via llvm-bugs llvm-bugs at lists.llvm.org
Fri Feb 19 00:57:40 PST 2016


Hello guys,

In the package Clang for Mac OS X
<http://llvm.org/releases/3.7.0/clang+llvm-3.7.0-x86_64-apple-darwin.tar.xz>
3.7.0,
there is a new line issue in:

clang+llvm-3.7.0-x86_64-apple-darwin/share/llvm/cmake/LLVMConfig.cmake

If you want to use this .cmake, you have to change the second comment:

 # Compute the CMake directory from the LLVMConfig.cmake file location.n
get_filename_component(_LLVM_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)n
# Compute the installation prefix from the LLVMConfig.cmake file location.n
get_filename_component(LLVM_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_FILE}"
PATH)n get_filename_component(LLVM_INSTALL_PREFIX "${LLVM_INSTALL_PREFIX}"
PATH)n get_filename_component(LLVM_INSTALL_PREFIX "${LLVM_INSTALL_PREFIX}"
PATH)n get_filename_component(LLVM_INSTALL_PREFIX "${LLVM_INSTALL_PREFIX}"
PATH)n set(_LLVM_LIBRARY_DIR "${LLVM_INSTALL_PREFIX}/lib")

with:

 # Compute the CMake directory from the LLVMConfig.cmake file location.
get_filename_component(_LLVM_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
# Compute the installation prefix from the LLVMConfig.cmake file location.
get_filename_component(LLVM_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_FILE}"
PATH)
get_filename_component(LLVM_INSTALL_PREFIX "${LLVM_INSTALL_PREFIX}" PATH)
get_filename_component(LLVM_INSTALL_PREFIX "${LLVM_INSTALL_PREFIX}" PATH)
get_filename_component(LLVM_INSTALL_PREFIX "${LLVM_INSTALL_PREFIX}" PATH)
set(_LLVM_LIBRARY_DIR "${LLVM_INSTALL_PREFIX}/lib")

As you can see, we need to replace the "n" with \n.

Best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160219/d9bf3562/attachment.html>


More information about the llvm-bugs mailing list