[CMake] Can't cd to DOWNLOAD_DIR

Cedric Doucet cedric.doucet at inria.fr
Mon Jun 1 06:38:12 EDT 2015


Hello, 

in the ExternalProject_add function, I would like to access to DOWNLOAD_DIR to download a patch (for ARPACK). 
So, I define my patch command like this: 

================================================== 
PATCH_COMMAND cd <DOWNLOAD_DIR> && 
wget /myurl/mypatch.tar.gz && 
cd <SOURCE_DIR> && 
tar xvzf <DOWNLOAD_DIR>/mypatch.tar.gz 
================================================== 

However, I get the following error: 

[ 5%] Performing patch step for 'arpack' 
/bin/sh: 1: cd: can't cd to <DOWNLOAD_DIR> 
make[2]: *** [third-party/arpack/stamp/arpack-patch] Erreur 2 
make[1]: *** [CMakeFiles/arpack.dir/all] Erreur 2 
make: *** [all] Erreur 2 

Do you see where I make a mistake? 

Thank you! 

Cédric 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150601/fb39714d/attachment.html>


More information about the CMake mailing list