<br><br><div class="gmail_quote">2013/1/20 Ansis Māliņš <span dir="ltr">&lt;<a href="mailto:ansis.malins@gmail.com" target="_blank">ansis.malins@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>The line<br></div><div>ExternalProject_Add(bullet PREFIX ${PROJECT_SOURCE_DIR})<br></div><div>fails with</div><div><div>Install the project...</div><div>-- Install configuration: &quot;Release&quot;</div>


<div>CMake Error at cmake_install.cmake:38 (FILE):</div><div>  file cannot create directory: /usr/local/lib/pkgconfig.  Maybe need</div><div>  administrative privileges.</div><div><br></div><div>Why? How do I avoid needing root for building my project?</div>
</div></div></blockquote><div><br>I don&#39;t really know but  your ExternalProject_Add( looks strange?<br><br>Do you really want to use **current** project source dir (${PROJECT_SOURCE_DIR})<br>as the PREFIX of your external project?<br>
<br>I bet this is a mistake you usually use a separate prefix for **each** external project<br>and probably use at least a subdirectory of the current &quot;meta-project&quot;<br><br>It looks like you somehow inherit the &quot;default&quot; CMAKE_INSTALL_PREFIX<br>
from the current project  which happens to be &quot;/usr/local&quot;, thus the failure.<br><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>


<div>What I&#39;m trying to do: Build several projects (bullet, ogre, btogre, sdl, mygame) into one thing. ExternalProject seems like the correct way to do that.</div></div></div></blockquote><div><br>Right, looks like a good idea, but you need to specify a proper prefix.<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><br></div><div>

Lubuntu Linux 12.04</div><div>CMake 2.8.7</div></div></div>
<br>--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br><br clear="all"><br>-- <br>Erk<br>Le gouvernement représentatif n&#39;est pas la démocratie -- <a href="http://www.le-message.org" target="_blank">http://www.le-message.org</a>