If I do this:

FIND_PACKAGE(VXL REQUIRED)
INCLUDE(${VXL_CMAKE_DIR}/UseVXL.cmake)

CMake asks me for the VXL path and then everything works fine. When I compile with something like #include <vnl/vnl_vector.h> it finds it no problem.

However, if I do this:

SET( VXL_DIR /home/doriad/bin/vxl) #the same path I would tell cmake in the previous method
INCLUDE(${VXL_DIR}/UseVXL.cmake)

CMake doesn't complain, but when I
#include <vnl/vnl_vector.h>
it says file not found.

Does anyone know why this would be?

Thanks,

David