<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div><br data-mce-bogus="1"></div><div>Hello,<br></div><div><br></div><div>in the ExternalProject_add function, I would like to access to DOWNLOAD_DIR to download a patch (for ARPACK).<br></div><div>So, I define my patch command like this:<br></div><div><br></div><div>==================================================<br></div><div>PATCH_COMMAND cd <DOWNLOAD_DIR> && </div><div>                                     wget /myurl/mypatch.tar.gz &&</div><div>                                     cd <SOURCE_DIR> &&<br></div><div>                                     tar xvzf <DOWNLOAD_DIR>/mypatch.tar.gz<br></div><div>==================================================<br></div><div><br></div><div>However, I get the following error:<br></div><div><br></div><div>[  5%] Performing patch step for 'arpack'<br>/bin/sh: 1: cd: can't cd to <DOWNLOAD_DIR><br>make[2]: *** [third-party/arpack/stamp/arpack-patch] Erreur 2<br>make[1]: *** [CMakeFiles/arpack.dir/all] Erreur 2<br>make: *** [all] Erreur 2</div><div><br></div><div>Do you see where I make a mistake?<br></div><div><br></div><div>Thank you!<br></div><div><br></div><div>Cédric<br></div><div><br></div><div><br></div></div></body></html>