<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - llvm3.5 debian cmake helper scripts does not work"
   href="http://llvm.org/bugs/show_bug.cgi?id=20132">20132</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>llvm3.5 debian cmake helper scripts does not work
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>matthias@goldhoorn.eu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>