<div dir="ltr">Hi all,<div><br></div><div>I have created the following tree</div><div><br></div><div>mkdir foo</div><div>mkdir -p foo/cpp/src/third-party</div><div>mkdir foo/bin</div><div><br></div><div>with a minimal CMakeLists.txt to fetch and build the Boost libraries using ExternalProject_Add (see attached).</div>
<div><br></div><div>Running (linux 64 bit, cmake 2.8.10.1)</div><div><br></div><div>cd foo/bin</div><div>cmake ..</div><div>make </div><div><br></div><div>produces the following error where there&#39;s no rule to make target Boost-cfgcmd.txt.</div>
<div><br></div><div><div>$ cmake ..</div><div><div>-- The C compiler identification is GNU 4.7.3</div><div>-- The CXX compiler identification is GNU 4.7.3</div><div>-- Check for working C compiler: /usr/bin/cc</div><div>-- Check for working C compiler: /usr/bin/cc -- works</div>
<div>-- Detecting C compiler ABI info</div><div>-- Detecting C compiler ABI info - done</div><div>-- Check for working CXX compiler: /usr/bin/c++</div><div>-- Check for working CXX compiler: /usr/bin/c++ -- works</div><div>
-- Detecting CXX compiler ABI info</div><div>-- Detecting CXX compiler ABI info - done</div><div>-- Configuring done</div><div>-- Generating done</div><div>-- Build files have been written to: /home/~/Downloads/foo/bin</div>
</div><div><br></div><div><br></div><div><div>$ make VERBOSE=1</div><div><div>$ make VERBOSE=1</div><div>/usr/bin/cmake -H/home/rcasero/Downloads/foo -B/home/rcasero/Downloads/foo/bin --check-build-system CMakeFiles/Makefile.cmake 0</div>
<div>/usr/bin/cmake -E cmake_progress_start /home/rcasero/Downloads/foo/bin/CMakeFiles /home/rcasero/Downloads/foo/bin/CMakeFiles/progress.marks</div><div>make -f CMakeFiles/Makefile2 all</div><div>make[1]: Entering directory `/home/rcasero/Downloads/foo/bin&#39;</div>
<div>make -f CMakeFiles/Boost.dir/build.make CMakeFiles/Boost.dir/depend</div><div>make[2]: Entering directory `/home/rcasero/Downloads/foo/bin&#39;</div><div>cd /home/rcasero/Downloads/foo/bin &amp;&amp; /usr/bin/cmake -E cmake_depends &quot;Unix Makefiles&quot; /home/rcasero/Downloads/foo /home/rcasero/Downloads/foo /home/rcasero/Downloads/foo/bin /home/rcasero/Downloads/foo/bin /home/rcasero/Downloads/foo/bin/CMakeFiles/Boost.dir/DependInfo.cmake --color=</div>
<div>Dependee &quot;/home/rcasero/Downloads/foo/bin/CMakeFiles/Boost.dir/DependInfo.cmake&quot; is newer than depender &quot;/home/rcasero/Downloads/foo/bin/CMakeFiles/Boost.dir/depend.internal&quot;.</div><div>Dependee &quot;/home/rcasero/Downloads/foo/bin/CMakeFiles/CMakeDirectoryInformation.cmake&quot; is newer than depender &quot;/home/rcasero/Downloads/foo/bin/CMakeFiles/Boost.dir/depend.internal&quot;.</div>
<div>Scanning dependencies of target Boost</div><div>make[2]: Leaving directory `/home/rcasero/Downloads/foo/bin&#39;</div><div>make -f CMakeFiles/Boost.dir/build.make CMakeFiles/Boost.dir/build</div><div>make[2]: Entering directory `/home/rcasero/Downloads/foo/bin&#39;</div>
<div>/usr/bin/cmake -E cmake_progress_report /home/rcasero/Downloads/foo/bin/CMakeFiles 3</div><div>[ 12%] Creating directories for &#39;Boost&#39;</div><div>/usr/bin/cmake -E make_directory /home/rcasero/Downloads/foo/cpp/src/third-party/boost_1_44_0</div>
<div>/usr/bin/cmake -E make_directory /home/rcasero/Downloads/foo/cpp/src/third-party/boost_1_44_0</div><div>/usr/bin/cmake -E make_directory /home/rcasero/Downloads/foo/cpp/src/third-party/boost_1_44_0</div><div>/usr/bin/cmake -E make_directory /home/rcasero/Downloads/foo/cpp/src/third-party/boost_1_44_0</div>
<div>/usr/bin/cmake -E make_directory /home/rcasero/Downloads/foo/cpp/src/third-party/boost_1_44_0</div><div>/usr/bin/cmake -E make_directory /home/rcasero/Downloads/foo/cpp/src/third-party</div><div>/usr/bin/cmake -E touch /home/rcasero/Downloads/foo/cpp/src/third-party/boost_1_44_0/Boost-mkdir</div>
<div>/usr/bin/cmake -E cmake_progress_report /home/rcasero/Downloads/foo/bin/CMakeFiles 4</div><div>[ 25%] Performing download step (download, verify and extract) for &#39;Boost&#39;</div><div>cd /home/rcasero/Downloads/foo/cpp/src/third-party &amp;&amp; /usr/bin/cmake -P /home/rcasero/Downloads/foo/cpp/src/third-party/boost_1_44_0/download-Boost.cmake</div>
<div>-- downloading...</div><div>     src=&#39;<a href="http://downloads.sourceforge.net/project/boost/boost/1.44.0/boost_1_44_0.tar.gz">http://downloads.sourceforge.net/project/boost/boost/1.44.0/boost_1_44_0.tar.gz</a>&#39;</div>
<div>     dst=&#39;/home/rcasero/Downloads/foo/cpp/src/third-party/boost_1_44_0.tar.gz&#39;</div><div>     timeout=&#39;none&#39;</div><div>-- [download 0% complete]</div><div>-- [download 1% complete]</div><div>-- [download 2% complete]</div>
</div></div><div>[...]</div><div><div>-- [download 98% complete]</div><div>-- [download 99% complete]</div><div>-- [download 100% complete]</div><div>-- downloading... done</div><div>cd /home/rcasero/Downloads/foo/cpp/src/third-party &amp;&amp; /usr/bin/cmake -P /home/rcasero/Downloads/foo/cpp/src/third-party/boost_1_44_0/verify-Boost.cmake</div>
<div>-- verifying file...</div><div>     file=&#39;/home/rcasero/Downloads/foo/cpp/src/third-party/boost_1_44_0.tar.gz&#39;</div><div>-- verifying file... warning: did not verify file - no URL_HASH specified?</div><div>cd /home/rcasero/Downloads/foo/cpp/src/third-party &amp;&amp; /usr/bin/cmake -P /home/rcasero/Downloads/foo/cpp/src/third-party/boost_1_44_0/extract-Boost.cmake</div>
<div>-- extracting...</div><div>     src=&#39;/home/rcasero/Downloads/foo/cpp/src/third-party/boost_1_44_0.tar.gz&#39;</div><div>     dst=&#39;/home/rcasero/Downloads/foo/cpp/src/third-party/boost_1_44_0&#39;</div><div>-- extracting... [tar xfz]</div>
<div>-- extracting... [analysis]</div><div>-- extracting... [rename]</div><div>-- extracting... [clean up]</div><div>-- extracting... done</div><div>cd /home/rcasero/Downloads/foo/cpp/src/third-party &amp;&amp; /usr/bin/cmake -E touch /home/rcasero/Downloads/foo/cpp/src/third-party/boost_1_44_0/Boost-download</div>
<div>/usr/bin/cmake -E cmake_progress_report /home/rcasero/Downloads/foo/bin/CMakeFiles 6</div><div>[ 37%] No patch step for &#39;Boost&#39;</div><div>cd /home/rcasero/Downloads/foo/cpp/src/third-party/boost_1_44_0 &amp;&amp; /usr/bin/cmake -E touch /home/rcasero/Downloads/foo/cpp/src/third-party/boost_1_44_0/Boost-patch</div>
<div>make[2]: *** No rule to make target `../cpp/src/third-party/boost_1_44_0/Boost-cfgcmd.txt&#39;, needed by `../cpp/src/third-party/boost_1_44_0/Boost-configure&#39;. Stop.</div><div>make[2]: Leaving directory `/home/rcasero/Downloads/foo/bin&#39;</div>
<div>make[1]: *** [CMakeFiles/Boost.dir/all] Error 2</div><div>make[1]: Leaving directory `/home/rcasero/Downloads/foo/bin&#39;</div><div>make: *** [all] Error 2</div></div><div><br></div><div><br></div><div><br></div><div style>
The error goes away if the PREFIX, TMP_DIR and STAM_DIR lines are commented out.</div><div><br></div><div><br></div><div style>Best regards,</div><div style><br></div><div style>Ramon.</div><div><br></div>-- <br>Dr. Ramón Casero Cañas<br>
<br>Oxford e-Research Centre (OeRC)<br>University of Oxford<br>7 Keble Rd<br>Oxford OX1 3QG<br><br>tlf     +44 (0) 1865 610739<br>web     <a href="http://www.cs.ox.ac.uk/people/Ramon.CaseroCanas" target="_blank">http://www.cs.ox.ac.uk/people/Ramon.CaseroCanas</a><br>
photos  <a href="http://www.flickr.com/photos/rcasero/" target="_blank">http://www.flickr.com/photos/rcasero/</a>
</div></div>