[Insight-developers] ITK_SOURCE_DIR in ITKConfig.cmake
    Miller, James V (Research) 
    millerjv at crd.ge.com
       
    Fri Feb  4 10:13:24 EST 2005
    
    
  
Well... the cvs log says
ENH: define ITK_SOURCE_DIR for use outside of the project.
:)
I am guessing that it has to do with building a project that uses ITK and 
that project needing to know how to find some ITK resource (perhaps Data?) 
and there was no other variable defined that allowed that resource to be 
located.
It was done a little over a year ago, we will have to reconstruct what we 
were doing at the time. I'll check with Bill.
Jim
-----Original Message-----
From: insight-developers-bounces at itk.org
[mailto:insight-developers-bounces at itk.org]On Behalf Of Brad King
Sent: Friday, February 04, 2005 9:53 AM
To: Insight Developers
Cc: William E Lorensen
Subject: [Insight-developers] ITK_SOURCE_DIR in ITKConfig.cmake
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
_______________________________________________
Insight-developers mailing list
Insight-developers at itk.org
http://www.itk.org/mailman/listinfo/insight-developers
    
    
More information about the Insight-developers
mailing list