I am trying to compile VTK from CVS: I am getting the following errors from cmake:<br><br><br>&nbsp;CMake Error: Error in cmake code at<br>&nbsp;/usr/student/tango/maclenna/src/c++/vtk/VTK/Utilities/MaterialLibrary/CMakeLists.txt:85:
<br>&nbsp;IF had incorrect arguments: NOT &quot;${VTK_BINARY_DIR}&quot; MATCHES &quot;^${VTK_SOURCE_DIR}$&quot; (Regular expression<br>&nbsp;&quot;^/usr/student/tango/maclenna/src/c++/vtk/VTK$&quot; cannot compile).<br>&nbsp;Current CMake stack: /usr/student/tango/maclenna/src/c++/vtk/VTK/Utilities/MaterialLibrary/CMakeLists.txt
<br><br>&nbsp;CMake Error: Error in cmake code at<br>&nbsp;/usr/student/tango/maclenna/src/c++/vtk/VTK/Utilities/MaterialLibrary/CMakeLists.txt:91:<br>&nbsp;ENDIF An ENDIF command was found outside of a proper IF ENDIF structure. Or its arguments did not match the opening IF command.
<br>&nbsp;Current CMake stack: /usr/student/tango/maclenna/src/c++/vtk/VTK/Utilities/MaterialLibrary/CMakeLists.txt<br><br>&nbsp;CMake Error: Error in cmake code at<br>&nbsp;/usr/student/tango/maclenna/src/c++/vtk/VTK/Utilities/TclTk/internals/CMakeLists.txt:4:
<br>&nbsp;IF had incorrect arguments: &quot;${TK_INTERNAL_PATH}&quot; MATCHES &quot;${CMAKE_CURRENT_SOURCE_DIR}/tk${TCL_TK_VERSION}&quot; (Regular expression<br>&nbsp;&quot;/usr/student/tango/maclenna/src/c++/vtk/VTK/Utilities/TclTk/internals/tk8.4&quot; cannot compile).
<br>&nbsp;Current CMake stack: /usr/student/tango/maclenna/src/c++/vtk/VTK/Utilities/TclTk/internals/CMakeLists.txt<br><br>&nbsp;CMake Error: Error in cmake code at<br>&nbsp;/usr/student/tango/maclenna/src/c++/vtk/VTK/Utilities/TclTk/resources/CMakeLists.txt:4:
<br>&nbsp;IF had incorrect arguments: &quot;${VTK_TK_RESOURCES_DIR}&quot; MATCHES &quot;${CMAKE_CURRENT_SOURCE_DIR}/tk${TCL_TK_VERSION}&quot; (Regular expression<br>&nbsp;&quot;/usr/student/tango/maclenna/src/c++/vtk/VTK/Utilities/TclTk/resources/tk8.4&quot; cannot compile).
<br>&nbsp;Current CMake stack: /usr/student/tango/maclenna/src/c++/vtk/VTK/Utilities/TclTk/resources/CMakeLists.txt<br><br>&nbsp;CMake Error: Error in cmake code at<br>&nbsp;/usr/student/tango/maclenna/src/c++/vtk/VTK/Wrapping/Python/CMakeLists.txt:301:
<br>&nbsp;IF had incorrect arguments: &quot;${VTK_BINARY_DIR}&quot; MATCHES &quot;^${VTK_SOURCE_DIR}$&quot; (Regular expression<br>&nbsp;&quot;^/usr/student/tango/maclenna/src/c++/vtk/VTK$&quot; cannot compile).<br>&nbsp;Current CMake stack: /usr/student/tango/maclenna/src/c++/vtk/VTK/Wrapping/Python/CMakeLists.txt
<br><br><br>Does anyone have any idea about whats going on here?<br><br>cheers<br><br>alex<br>