<p dir="ltr">Specify a patch command that creates a toplevel cmake list with one 'add_subdirectory(A)'  line. </p>
<br><div class="gmail_quote">On Sun, 8 Feb 2015 4:14 am Neil Carlson <<a href="mailto:neil.n.carlson@gmail.com">neil.n.carlson@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm trying to get ExternalProject_Add to build a TPL that doesn't have a CMakeLists.txt file in the top-level directory.  The TPL untars as foo/{A,B} where A and B each contain a CMakeLists.txt file and are independent of each other.  I only want to build "A" and would like to have cmake run with "foo/A" as the <path-to-source>.  Unfortunately I can't seem to manage it. The tar file is unpacked with ${SOURCE_DIR} as its root, and that same directory is used as the <path-to-source> for the cmake command -- I want ${SOURCE_DIR}/A.  Any suggestions on how to make ExternalProject do what I want?  Clearly I can just repackage the tar file, but I'd rather use the pristine tar file if I can.<div><br></div><div>Thanks</div></div>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</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/<u></u>CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/<u></u>support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/<u></u>consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/<u></u>training.html</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/<u></u>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" target="_blank">http://public.kitware.com/<u></u>mailman/listinfo/cmake</a></blockquote></div>