<div dir="ltr">Hi,<div><br></div><div>If I understand correctly, the problem is that you need to give cmake the path to the llvm source dir, not libcxxabi source dir. When invoking make, you can chose to build just libcxxabi (make cxxabi).</div><div><br></div><div>Hope this helps.</div><div><br></div><div>/ Asiri</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 25, 2016 at 7:02 AM, Salil Wadnerkar via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Hi,</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">I am building clang and libc++abi from sources on Fedora.</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">My llvm, clang and libc++ installation is complete. However, when I try to build libc++abi, I get this error:</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default"><div class="gmail_default"><div class="gmail_default"><font face="tahoma, sans-serif">swadnerkar@localhost:~/llvm/projects/libcxxabi/build (master %) $ CC=clang CXX=clang++ cmake -DCMAKE_BUILD_TYPE=Release ..</font></div><div class="gmail_default"><font face="tahoma, sans-serif">CMake Error at CMakeLists.txt:35 (add_llvm_external_project):</font></div><div class="gmail_default"><font face="tahoma, sans-serif"> Unknown CMake command "add_llvm_external_project".</font></div><div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><font face="tahoma, sans-serif">CMake Warning (dev) in CMakeLists.txt:</font></div><div class="gmail_default"><font face="tahoma, sans-serif"> No cmake_minimum_required command is present. A line of code such as</font></div><div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><font face="tahoma, sans-serif"> cmake_minimum_required(VERSION 3.5)</font></div><div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><font face="tahoma, sans-serif"> should be added at the top of the file. The version specified may be lower</font></div><div class="gmail_default"><font face="tahoma, sans-serif"> if you wish to support older CMake versions for this project. For more</font></div><div class="gmail_default"><font face="tahoma, sans-serif"> information run "cmake --help-policy CMP0000".</font></div><div class="gmail_default"><font face="tahoma, sans-serif">This warning is for project developers. Use -Wno-dev to suppress it.</font></div><div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><font face="tahoma, sans-serif">-- Configuring incomplete, errors occurred!</font></div><div class="gmail_default"><font face="tahoma, sans-serif">See also "/home/swadnerkar/llvm/projects/libcxxabi/CMakeFiles/CMakeOutput.log".</font></div><div><br></div><div><br></div><div>The LLVM Cmake modules are installed here:</div><div>/usr/local/lib/cmake/llvm/LLVMExternalProjectUtils.cmake</div><div><br></div><div>How do I make cmake use these </div><div>I tried this:</div><div>export CMAKE_PREFIX_PATH=/usr/local/ </div><div><br></div><div>But, it did not work.</div><div><br></div><div>Could someone help me install libc++abi, please?</div><div><br></div><div>Thank you</div><span class="HOEnZb"><font color="#888888"><div>Salil</div></font></span></div></div></div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>