<div dir="ltr">Hi Christophe,<div><br></div><div>I didn't fully get your setup. Is C:/Luciad_src/libs/LLVM where you unpacked the sources? Or is that a build or install tree? If it is the former, and your errors suggest that it is, then that's not how this works!</div><div><br></div><div>You need to point CMake to a built version of LLVM.</div><div><br></div><div>Now, I'm not familiar with the windows packaging, so I can't tell you whether the binaries you downloaded already contained what you need. Someone who's more familiar with the windows environment should chime in here. On Linux at least there are dev packages available for this purpose, so it's possible the windows distribution contains something like that.</div><div><br></div><div>Cheers,</div><div>Philip</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-23 15:44 GMT+01:00 Christophe Demez via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p>Hi everybody,   <br>
      <br>
      I'm trying to build my own project that use LLVM. I downloaded the
      source code and the pre-compiled package on the official web site
      (last version):<br>
      <br>
          <a class="m_-1600653212598549570moz-txt-link-freetext" href="http://releases.llvm.org/download.html" target="_blank">http://releases.llvm.org/<wbr>download.html</a><br>
      <br>
      I downloaded the following :<br>
      <br>
          LLVM source code<br>
          Clang for Windows (64-bit)<br>
      <br>
      FYI, I don't build LLVM... only want to use it !<br>
      <br>
      I followed the instruction here (
      <a class="m_-1600653212598549570moz-txt-link-freetext" href="http://llvm.org/docs/CMake.html#embedding-llvm-in-your-project" target="_blank">http://llvm.org/docs/CMake.<wbr>html#embedding-llvm-in-your-<wbr>project</a> ),
      in the section : "Embedding LLVM in your project".<br>
      <br>
      So, I added this code into my cmake file :<br>
      <br>
        find_package(LLVM REQUIRED CONFIG)<br>
        message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")<br>
        message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")<br>
        message("LLVM_INCLUDE_DIRS=${<wbr>LLVM_INCLUDE_DIRS}")<br>
        message("LLVM_DEFINITIONS=${<wbr>LLVM_DEFINITIONS}")<br>
      <br>
      But I got several cmake error messages, here is my output :<br>
      <br>
          -- Using LLVMConfig.cmake in:
      C:\\Luciad_src\\libs\\LLVM\\<wbr>cmake\\modules<br>
          LLVM_INCLUDE_DIRS=<br>
          LLVM_DEFINITIONS=<br>
          CMake Error at
      C:/Luciad_src/libs/LLVM/cmake/<wbr>modules/LLVM-Config.cmake:31 (list):<br>
            list sub-command REMOVE_ITEM requires two or more arguments.<br>
          Call Stack (most recent call first):<br>
            C:/Luciad_src/libs/LLVM/cmake/<wbr>modules/LLVM-Config.cmake:256
      (is_llvm_target_library)<br>
            components/query/CMakeLists.<wbr>txt:15
      (llvm_map_components_to_<wbr>libnames)<br>
      <br>
      Is there a problem with my script, or the packages I use ? Any
      idea ?<br>
      <br>
      Thanks for your help<span class="HOEnZb"><font color="#888888"><br>
    </font></span></p><span class="HOEnZb"><font color="#888888">
    <div class="m_-1600653212598549570moz-signature">-- <br>
      
      
      <span class="m_-1600653212598549570name" style="font-family:Arial,Helvetica,sans-serif;font-size:10pt;color:#6b7d82;text-transform:uppercase"><strong>
          Christophe Demez
        </strong></span><br>
      <span class="m_-1600653212598549570title" style="font-family:Arial,Helvetica,sans-serif;font-size:9pt;color:#6b7d82;text-transform:uppercase">
        PROJECT LEADER
      </span> <span class="m_-1600653212598549570half-line" style="line-height:2px">  <br>
        <br>
      </span> <span class="m_-1600653212598549570links" style="color:#6b7d82;font-family:Arial,Helvetica,sans-serif;font-size:9pt"><a href="http://www.luciad.com/" style="color:#6b7d82;font-family:Arial,Helvetica,sans-serif;font-size:10pt;font-weight:400;text-decoration:none" target="_blank"><strong>LUCIAD</strong></a></span><span class="m_-1600653212598549570normal" style="font-family:Arial,Helvetica,sans-serif;font-size:9pt;font-weight:400;color:#6b7d82">
         CONNECT  <span class="m_-1600653212598549570normal" style="font-family:Arial,Helvetica,sans-serif;font-size:9pt;font-weight:400;color:#6b7d82">•  VISUALIZE  <span class="m_-1600653212598549570normal" style="font-family:Arial,Helvetica,sans-serif;font-size:9pt;font-weight:400;color:#6b7d82">•</span>
           ANALYZE  <span class="m_-1600653212598549570normal" style="font-family:Arial,Helvetica,sans-serif;font-size:9pt;font-weight:400;color:#6b7d82">•</span>
           ACT</span></span> <span class="m_-1600653212598549570half-line" style="line-height:2px">  <br>
        <br>
      </span> <span class="m_-1600653212598549570links" style="color:#6b7d82;font-family:Arial,Helvetica,sans-serif;font-size:9pt;font-weight:400">
        <a href="mailto:christophe.demez@luciad.com" style="color:#6b7d82;font-family:Arial,Helvetica,sans-serif;font-size:9pt;font-weight:400;text-decoration:none" target="_blank">
          christophe.demez@luciad.com
        </a> </span> <span class="m_-1600653212598549570normal" style="font-family:Arial,Helvetica,sans-serif;font-size:9pt;font-weight:400;color:#6b7d82">• </span><span class="m_-1600653212598549570normal" style="font-family:Arial,Helvetica,sans-serif;font-size:9pt;font-weight:400;color:#6b7d82"> T </span><span class="m_-1600653212598549570number" style="font-family:Tahoma,Arial sans-serif;font-size:9pt;font-weight:200;color:#6b7d82">
        <a href="tel:+32%2016%2023%2095%2091" value="+3216239591" target="_blank">+32 16 23 95 91</a>
      </span><br>
      <span class="m_-1600653212598549570normal" style="font-family:Arial,Helvetica,sans-serif;font-size:9pt;font-weight:400;color:#6b7d82">Follow
        us on </span><span class="m_-1600653212598549570links" style="color:#6b7d82;font-family:Arial,Helvetica,sans-serif;font-size:9pt;font-weight:400"><a href="https://www.linkedin.com/company/luciad" style="color:#6b7d82;font-family:Arial,Helvetica,sans-serif;font-size:9pt;font-weight:400;text-decoration:none" target="_blank">LinkedIn</a></span><span class="m_-1600653212598549570normal" style="font-family:Arial,Helvetica,sans-serif;font-size:9pt;font-weight:400;color:#6b7d82"> or </span><span class="m_-1600653212598549570links" style="color:#6b7d82;font-family:Arial,Helvetica,sans-serif;font-size:9pt;font-weight:400"><a href="http://www.twitter.com/LUCIADconnect" style="color:#6b7d82;font-family:Arial,Helvetica,sans-serif;font-size:9pt;font-weight:400;text-decoration:none" target="_blank">@LUCIADconnect</a></span>
      <span class="m_-1600653212598549570half-line" style="line-height:2px">   <br>
        <br>
      </span> <img alt="Luciad"> </div>
  </font></span></div>

<br>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>