[LLVMbugs] [Bug 20132] New: llvm3.5 debian cmake helper scripts does not work

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jun 26 02:54:43 PDT 2014


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

            Bug ID: 20132
           Summary: llvm3.5 debian cmake helper scripts does not work
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: matthias at goldhoorn.eu
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

I got my first clang project and tried to compile it with the following cmake
script:

 4 cmake_minimum_required(VERSION 2.8)
  5 set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}:/usr/share/llvm-3.5/cmake")
  6 find_package(LLVM)
  7 
  8 include(AddLLVM)
  9 add_definitions(${LLVM_DEFINITIONS})
 10 include_directories(${LLVM_INCLUDE_DIRS})
 11 link_directories(${LLVM_LIBRARY_DIRS})
 12 
 13 #llvm_map_components_to_libraries(REQ_LLVM_LIBRARIES jit native)
 14 
 15 
 16 add_clang_executable(test
 17     main2.cpp
 18     )


Unforutnalty this results in the following error:


CMake Error at /usr/share/llvm-3.5/cmake/LLVMExports.cmake:6 (set_property):
  set_property could not find TARGET LLVMSupport.  Perhaps it has not yet
  been created.
Call Stack (most recent call first):
  /usr/share/llvm-3.5/cmake/LLVMConfig.cmake:43 (include)
  CMakeLists.txt:6 (find_package)

... there will be a lot of simila follow-up errors.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140626/1b64f6ed/attachment.html>


More information about the llvm-bugs mailing list