View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005173ITKpublic2007-06-13 03:032007-06-13 12:44
ReporterSteve Robbins 
Assigned ToMathieu Malaterre 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0005173: ITKConfig.cmake should not export SOURCE DIR
DescriptionThe file ITKConfig.cmake is installed so that other cmake-using sources can properly find ITK's libs and includes. This file may be installed from a binary packaging on a system that doesn't have ITK sources. So there is no need to define ITK_SOURCE_DIR.

The patch included removes this.
TagsNo tags attached.
Resolution Date
Sprint
Sprint Status
Attached Filespatch file icon 04_ITKConfig.patch [^] (440 bytes) 1969-12-31 19:00 [Show Content]

 Relationships

  Notes
(0007866)
Mathieu Malaterre (developer)
2007-06-13 12:40

More comments from Steve:

It is both useless and misleading, IMHO.

Imagine you installed a binary packaging of ITK (say, from Debian)
that includes the ITKConfig.cmake file. The source code is not on
your machine, so this variable is completely useless.

The danger is that a naive developer of an ITK-based software package
may use this variable to get at something (maybe a header file)
without realising it. The software builds fine on her machine, but
not on my machine that doesn't have ITK source. The presence of this
variable may mislead someone into using it.
(0007867)
Mathieu Malaterre (developer)
2007-06-13 12:44

$ cvs ci -m"ENH: Fix Bug 0005173 - ITKConfig.cmake should not export SOURCE DIR. This value will point nowhere in a true installation (without source). Since VTK does not expose VTK_SOURCE_DIR either, simply remove it in ITK" ITKConfig.cmake.in
/cvsroot/Insight/Insight/ITKConfig.cmake.in,v <-- ITKConfig.cmake.in
new revision: 1.20; previous revision: 1.19

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team