MantisBT - ITK
View Issue Details
0005173ITKpublic2007-06-13 03:032007-06-13 12:44
Steve Robbins 
Mathieu Malaterre 
lowminoralways
closedfixed 
 
 
0005173: ITKConfig.cmake should not export SOURCE DIR
The 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.
No tags attached.
patch 04_ITKConfig.patch (440) 1969-12-31 19:00
https://public.kitware.com/Bug/file/1029/04_ITKConfig.patch
Issue History

Notes
(0007866)
Mathieu Malaterre   
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   
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