<div dir="ltr"><div><div><div>Hi Folks, <br><br></div>Similarly to what was done in ITK [1], would it be possible to rename the ExternalData module provided by VTK into "VTKExternalData.cmake" ?<br><br></div><div>Doing so would ensure the module provided by CMake is always used. See below for more details.<br></div><div><br></div>Thanks<br></div>Jc<br><br>[1] <a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/CMake/ITKExternalData.cmake">https://github.com/InsightSoftwareConsortium/ITK/blob/master/CMake/ITKExternalData.cmake</a><br><div><div><div><br><div><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Bradley Lowekamp</b> <span dir="ltr"><<a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a>></span><br>Date: Mon, Dec 8, 2014 at 11:02 AM<br>Subject: [slicer-devel] IASEM Module Build issue with ExternalData on Windows<br>To: "<a href="mailto:slicer-devel@bwh.harvard.edu">slicer-devel@bwh.harvard.edu</a>" <<a href="mailto:slicer-devel@bwh.harvard.edu">slicer-devel@bwh.harvard.edu</a>><br><br>Hello folk,<br>
<br>
I am hoping someone may recognize this issue. I am trying to address the error on windows due to data download[1]:<br>
<br>
17>Generating /.../IASEM-build/IASEMImportSeries/Data/Input/InLens/slice_01529_z=5.0193um.tif<br>
17>CMake Error at C:/D/N/Slicer-1-build/VTKv6/CMake/ExternalData.cmake:758 (message):<br>
17>  No "-Dfile=" value provided!<br>
17>Project : error PRJ0019: A tool returned an error code from "Generating /.../IASEM-build/IASEMImportSeries/Data/Input/InLens/slice_01529_z=5.0193um.tif"<br>
<br>
In my IASEM extension, I am including the CMake "ExternalData" module to download some testing data[2]. However from the error message, it appears to be including VTK's "ExternalData.cmake" module and not the CMake's version. I presume this maybe related to why it work for the single file[3] and not the REGEX series[4].<br>
<br>
Thanks for any help in getting my module to be packaged up for windows.<br>
<br>
Brad<br>
<br>
p.s. I make use of an environment variable "ExternalData_OBJECT_STORES" to store the ExternalData outside of the build directory. I know ITK and SimpleITK supports this. This makew the data stay locally between builds making it a rare occurrence for the data to actually be downloaded from the server. This improves the reliability and build times of regular testing. I don't think Slicer supports this nor the Slicer CDash build environment. It may be a good thing to do.<br>
<br>
[1] <a href="http://slicer.cdash.org/viewBuildError.php?buildid=320198" target="_blank">http://slicer.cdash.org/viewBuildError.php?buildid=320198</a><br>
[2] <a href="https://github.com/blowekamp/Slicer-IASEM/blob/master/IASEMImportSeries/Testing/CMakeLists.txt#L2" target="_blank">https://github.com/blowekamp/Slicer-IASEM/blob/master/IASEMImportSeries/Testing/CMakeLists.txt#L2</a><br>
[3] <a href="https://github.com/blowekamp/Slicer-IASEM/blob/master/IASEMImportSeries/Testing/CMakeLists.txt#L44" target="_blank">https://github.com/blowekamp/Slicer-IASEM/blob/master/IASEMImportSeries/Testing/CMakeLists.txt#L44</a><br>
[4] <a href="https://github.com/blowekamp/Slicer-IASEM/blob/master/IASEMImportSeries/Testing/CMakeLists.txt#L48" target="_blank">https://github.com/blowekamp/Slicer-IASEM/blob/master/IASEMImportSeries/Testing/CMakeLists.txt#L48</a><br>
_______________________________________________<br>
slicer-devel mailing list<br>
<a href="mailto:slicer-devel@bwh.harvard.edu">slicer-devel@bwh.harvard.edu</a><br>
<a href="http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel" target="_blank">http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel</a><br>
To unsubscribe: send email to <a href="mailto:slicer-devel-request@bwh.harvard.edu">slicer-devel-request@bwh.harvard.edu</a> with unsubscribe as the subject<br>
<a href="http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ" target="_blank">http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ</a><br>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br>
</div><br clear="all"><br>-- <br><div class="gmail_signature">+1 919 869 8849<br></div>
</div></div></div></div></div>