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

Reply via email to