[Cmake] how to find one package when I have two

Lucas Lorenzo lucas at cvrti.utah.edu
Wed, 18 Feb 2004 09:39:57 -0700


Hi all,

I'm using ITK. Usually in my CMakeLists.txt files, I use this in order 
to find the ITK package:

# Find ITK.
FIND_PACKAGE(ITK)
IF(ITK_FOUND)
   INCLUDE(${ITK_USE_FILE})
ELSE(ITK_FOUND)
   MESSAGE(FATAL_ERROR
           "Cannot build without ITK.  Please set ITK_DIR.")
ENDIF(ITK_FOUND)

Now I have two different versions of ITK installed in my computer. How 
can I "find" the one I want to use ?
Thanks,


Lucas Lorenzo

University of Utah
Nora Eccles Harrison CardioVascular Research and Training Institute
Fellows Room
95 South 2000 East
Salt Lake City, UT 84112-5000

e-mail:  lucas at cvrti.utah.edu
telephone: 801-587-9536