Commit a5833821 authored by Sebastien Barre's avatar Sebastien Barre
Browse files

ENH: be a little smarter to find the Tcl/Tk version

parent 3ba0ecce
......@@ -20,10 +20,14 @@ MACRO (VTK_GET_TCL_TK_VERSION tcl_tk_major_version tcl_tk_minor_version)
SET (${tcl_tk_major_version} "8")
SET (${tcl_tk_minor_version} ${tcl_tk_minor_version_try})
ENDIF ("${TK_INTERNAL_PATH}" MATCHES "tk8${tcl_tk_minor_version_try}")
IF ("${TCL_LIBRARY}" MATCHES "tcl8${tcl_tk_minor_version_try}")
IF ("${TCL_LIBRARY}" MATCHES "tcl8\\.?${tcl_tk_minor_version_try}")
SET (${tcl_tk_major_version} "8")
SET (${tcl_tk_minor_version} ${tcl_tk_minor_version_try})
ENDIF ("${TCL_LIBRARY}" MATCHES "tcl8${tcl_tk_minor_version_try}")
ENDIF ("${TCL_LIBRARY}" MATCHES "tcl8\\.?${tcl_tk_minor_version_try}")
IF ("${TCL_INCLUDE_PATH}" MATCHES "tcl8\\.?${tcl_tk_minor_version_try}")
SET (${tcl_tk_major_version} "8")
SET (${tcl_tk_minor_version} ${tcl_tk_minor_version_try})
ENDIF ("${TCL_INCLUDE_PATH}" MATCHES "tcl8\\.?${tcl_tk_minor_version_try}")
ENDFOREACH (tcl_tk_minor_version_try)
ENDMACRO (VTK_GET_TCL_TK_VERSION)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment