[Insight-developers] Necessary (?) Patch to InsightApplications/CMakeLists.txt

Kent Williams kent at psychiatry.uiowa.edu
Mon Nov 6 16:41:05 EST 2006


I don't have write access to InsightApplications, and the following 
patch is necessary to compile InsightApplications if you're using an 
installed VTK.  The problem is that VTK_SOURCE_DIR -- which in my case, 
wasn't defined at all when configuring InsightApplications by itself -- 
is the wrong place to look for CMake include files, pretty much always.  
It really should be VTK_DIR since that's something usefully defined 
during the CMake configuration process.

*** CMakeLists.txt    3 Nov 2006 16:38:50 -0000    1.197
--- CMakeLists.txt    6 Nov 2006 21:37:11 -0000
***************
*** 297,303 ****
      OPTIONAL_APP(ThinPlateSplines)
    ENDIF(FLTK_FOUND)
 
!   SET(VTK_CMAKE_DIR ${VTK_SOURCE_DIR}/CMake)
    IF(VTK_WRAP_TCL)
      INCLUDE(${VTK_CMAKE_DIR}/vtkWrapTcl.cmake)
    ENDIF(VTK_WRAP_TCL)
--- 297,303 ----
      OPTIONAL_APP(ThinPlateSplines)
    ENDIF(FLTK_FOUND)
 
!   SET(VTK_CMAKE_DIR ${VTK_DIR}/CMake)
    IF(VTK_WRAP_TCL)
      INCLUDE(${VTK_CMAKE_DIR}/vtkWrapTcl.cmake)
    ENDIF(VTK_WRAP_TCL)



More information about the Insight-developers mailing list