<html><head><style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst, p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle, p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style></head><body><div data-externalstyle="false" dir="ltr" style="font-family:Calibri,'Segoe UI',Meiryo,'Microsoft YaHei UI','Microsoft JhengHei UI','Malgun Gothic','Khmer UI','Nirmala UI',Tunga,'Lao UI',Ebrima,sans-serif;font-size:12pt;"><div>> For now, one possibility to preserve the timestamps of the files is to<br>> replace that cmake -E copy_directory command <br>> with a combination of the<br><br>> cmake -E tar cf ....<br>> cmake -E tar xf ....<br></div><div> </div><div>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.</div><div> </div><div>ExternalProject totally knows how to transform a .tar/.tar.gz file into a source directory...</div><div> </div><div>You could also try simply using the directory in-place as the original if you specify:</div><div> DOWNLOAD_COMMAND “”</div><div> SOURCE_DIR “original directory”</div><div>instead of URL.</div><div> </div><div> </div><div>Always take the simplest approach that requires no changes to existing CMake if it’s possible (and not completely unreasonable...) <span style='font-family: "Segoe UI Symbol","Apple Color Emoji";' data-externalstyle="false">😊</span></div><div> </div><div> </div><div>HTH,</div><div>David</div><div> </div></div></body></html>