[cmake-developers] ExternalProject and git clone

Brad King brad.king at kitware.com
Wed Sep 11 10:48:28 EDT 2013


On 09/11/2013 10:39 AM, Daniele E. Domenichelli wrote:
> Ah ok, sorry I thought this was supposed to be a global variable, not a
> parameter of ExternalProject_Add...
> So, how about a SOURCE_DIR_PRESERVE parameter of ExternalProject_Add
> that defaults to the value of EP_SOURCE_DIR_PRESERVE if defined, or to
> TRUE if (The work tree is outside CMAKE_BINARY_DIR) AND (NOT
> CMAKE_MINIMUM_REQUIRED_VERSION VERSION_LESS 2.8.13)?

I guess EP_SOURCE_DIR_PRESERVE would work as a directory property
like EP_STEP_TARGETS does already.  However, I do not think it is
a good idea to keep a valuable source tree inside the build tree
of another project.  Also, see David Cole's other response.

If you're looking for a developer source tree dependency manager,
try Ryppl:

 http://ryppl.org/

-Brad



More information about the cmake-developers mailing list