[CMake] ExternalProject_Add without download of local sources?
Thomas Wolf
thomas.wolf at vision.ee.ethz.ch
Thu Sep 22 09:39:21 EDT 2011
On 15.09.2011 18:30, David Cole wrote:
> Luigi is correct:
>
> To use an existing source directory (just use the source in its place
> without any copy operations), simply say:
>
> DOWNLOAD_COMMAND ""
> SOURCE_DIR ${Log4Qt_SOURCE_DIR}
>
> The default behavior of copying the source tree when it is specified
> via URL is present for two reasons:
> (1) some packages require an in-source build, and copying the source
> tree is a good way to keep a clean copy of the source tree around
> (2) it's the same as all the other URL operations: in the http case,
> it's downloaded and then extracted ("copied") into the SOURCE_DIR
> location, in a local directory case, we also chose to make the copy
> simply for ease of implementation
>
Hi David,
Finally I got it to work. Thanks for the advice. As it turned out, you
have to be careful which other parameters you use: Getting rid of
Download or Update (in my case) commands definitions did the trick.
This makes sense, because otherwise you have to assume you want to
change/patch the sources...
Regards,
Thomas
More information about the CMake
mailing list