[Insight-developers] ITK_SOURCE_DIR in ITKConfig.cmake

Brad King brad.king at kitware.com
Fri Feb 4 09:52:52 EST 2005


Hello,

At some point this was added to ITKConfig.cmake:

# The ITK source tree.
SET(ITK_SOURCE_DIR "@ITK_SOURCE_DIR@")

The whole point of ITKConfig.cmake is to package up ITK for use by 
outside projects.  The outside project should never know whether it is 
using ITK from the build tree or an install tree.  Since ITK_SOURCE_DIR 
cannot be provided by an installed ITK, it should not be provided.  Why 
was it added?

This is causing the Java tests to be added the wrong way when building 
testing from outside the tree:

http://www.itk.org/Testing/Sites/hythloth.kitware/zTesting-Linux-gcc-3.3/20050204-0500-Nightly/Test.html

-Brad


More information about the Insight-developers mailing list