[vtk-developers] Renaming ExternalData.cmake into VTKExternalData.cmake (was: Fwd: [slicer-devel] IASEM Module Build issue with ExternalData on Windows)

Jean-Christophe Fillion-Robin jchris.fillionr at kitware.com
Thu Dec 11 16:53:42 EST 2014


Hi Folks,

Similarly to what was done in ITK [1], would it be possible to rename the
ExternalData module provided by VTK into "VTKExternalData.cmake" ?

Doing so would ensure the module provided by CMake is always used. See
below for more details.

Thanks
Jc

[1]
https://github.com/InsightSoftwareConsortium/ITK/blob/master/CMake/ITKExternalData.cmake

---------- Forwarded message ----------
From: Bradley Lowekamp <blowekamp at mail.nih.gov>
Date: Mon, Dec 8, 2014 at 11:02 AM
Subject: [slicer-devel] IASEM Module Build issue with ExternalData on
Windows
To: "slicer-devel at bwh.harvard.edu" <slicer-devel at bwh.harvard.edu>

Hello folk,

I am hoping someone may recognize this issue. I am trying to address the
error on windows due to data download[1]:

17>Generating
/.../IASEM-build/IASEMImportSeries/Data/Input/InLens/slice_01529_z=5.0193um.tif
17>CMake Error at C:/D/N/Slicer-1-build/VTKv6/CMake/ExternalData.cmake:758
(message):
17>  No "-Dfile=" value provided!
17>Project : error PRJ0019: A tool returned an error code from "Generating
/.../IASEM-build/IASEMImportSeries/Data/Input/InLens/slice_01529_z=5.0193um.tif"

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].

Thanks for any help in getting my module to be packaged up for windows.

Brad

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.

[1] http://slicer.cdash.org/viewBuildError.php?buildid=320198
[2]
https://github.com/blowekamp/Slicer-IASEM/blob/master/IASEMImportSeries/Testing/CMakeLists.txt#L2
[3]
https://github.com/blowekamp/Slicer-IASEM/blob/master/IASEMImportSeries/Testing/CMakeLists.txt#L44
[4]
https://github.com/blowekamp/Slicer-IASEM/blob/master/IASEMImportSeries/Testing/CMakeLists.txt#L48
_______________________________________________
slicer-devel mailing list
slicer-devel at bwh.harvard.edu
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to slicer-devel-request at bwh.harvard.edu with
unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the
e-mail
contains patient information, please contact the Partners Compliance
HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in
error
but does not contain patient information, please contact the sender and
properly
dispose of the e-mail.



-- 
+1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20141211/d03e89a8/attachment.html>


More information about the vtk-developers mailing list