<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font face="monospace" size="3"><b>hi,Óscar:</b></font><div><div class="im"><b style="font-family:monospace;font-size:medium">  </b><br>
  >Why? Please describe a case.</div></div></blockquote><div>  </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="im">  >I need to do some futher experiment and to see whether I have been wrong.</div>
</div></blockquote><div><br></div><div>     Since I touch this problem several months ago, so I did some test using the 3.2svn, the reason why uninstalled build 'cmake not work lies in </div><div><br></div><div><div>set(LLVM_INSTALL_PREFIX @LLVM_INSTALL_PREFIX@)</div>
<div>set(LLVM_INCLUDE_DIRS ${LLVM_INSTALL_PREFIX}/include)</div><div>set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib)</div></div><div><br></div><div>LLVM_INCLUDE_DIRS and LLVM_LIBRARY_DIRS points to the user specified or install tree location, but for uninstalled version, they are non-exist yet(because not run make install), so set <span style="text-align:left">CMAKE_PREFIX_PATH to </span>builddir\share\llvm\cmake and then do things as described in <a href="http://llvm.org/docs/CMake.html">http://llvm.org/docs/CMake.html</a> using find_package(LLVM) and then </div>
<div><br></div><div><div>include_directories( ${LLVM_INCLUDE_DIRS} )</div><div>link_directories( ${LLVM_LIBRARY_DIRS} )</div></div><div><br></div><div>will cause the problem, the directory are not present for the built but uninstalled source tree.</div>
<div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br>
<br>
</div><div class="im"><div><div>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div></div></div></blockquote></div><br></div>
</blockquote></div><br>