On Fri, Sep 28, 2012 at 4:19 AM, Ingolf Steinbach <span dir="ltr"><<a href="mailto:ingolf.steinbach@gmail.com" target="_blank">ingolf.steinbach@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br>
<br>
2012/7/24 Alexander Neundorf <<a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a>>:<br>
<div class="im">> Maybe you can use external_project() for that subdirectory ?<br>
<br>
</div>I have not been successful with that command. Probably, I have<br>
misunderstood something. Please see this example:<br>
<br>
my_project<br>
|<br>
+- CMakeLists.txt<br>
|<br>
+- external<br>
+...<br>
<br>
The top level CMakeLists.txt content:<br>
cmake_minimum_required(VERSION 2.8)<br>
include(ExternalProject)<br>
ExternalProject_Add(external SOURCE_DIR "${CMAKE_SOURCE_DIR}/external")<br>
<br>
When I run cmake (2.8.0), I get the following error message:<br>
CMake Error at /usr/share/cmake-2.8/Modules/ExternalProject.cmake:710 (message):<br>
error: no download info for 'external' -- please specify existing<br>
SOURCE_DIR or one of URL, CVS_REPOSITORY and CVS_MODULE, SVN_REPOSITORY or<br>
DOWNLOAD_COMMAND<br>
Call Stack (most recent call first):<br>
/usr/share/cmake-2.8/Modules/ExternalProject.cmake:941<br>
(_ep_add_download_command)<br>
CMakeLists.txt:3 (ExternalProject_Add)<br>
<br>
<br>
What is wrong with the SOURCE_DIR specification in the top level<br>
CMakeLists.txt? "${CMAKE_SOURCE_DIR}/external" expands to the correct<br>
absolute path to the (existing) "external" subdirectory of my_project.<br>
<div class="HOEnZb"><div class="h5"><br>
Kind regards<br>
Ingolf<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>
</div></div></blockquote></div><div><br></div><br><div>Please try with a more recent CMake version. The most recent release is 2.8.9. ExternalProject was first introduced in 2.8.0, and many many issues have been fixed in it over the last 2 years.</div>
<div><br></div><div>Thanks,</div><div>David</div><div><br></div>