> For now, one possibility to preserve the timestamps of the files is to
> replace that cmake -E copy_directory command 
> with a combination of the

> cmake -E tar cf ....
> cmake -E tar xf ....



Even easier than that would be to create the tarball you want, and then just 
pass it as the URL to ExternalProject_Add, either from a url on the internet, 
or a reference to a tarball in your source tree.


ExternalProject totally knows how to transform a .tar/.tar.gz file into a 
source directory...


You could also try simply using the directory in-place as the original if you 
specify:

  DOWNLOAD_COMMAND “”

  SOURCE_DIR “original directory”

instead of URL.



Always take the simplest approach that requires no changes to existing CMake if 
it’s possible (and not completely unreasonable...) 😊



HTH,

David
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to