diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2008-01-23 21:27:36 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2008-01-23 21:27:36 (GMT) |
commit | 99198a0765e710bafe1c3176a799c386fb4b6f5b (patch) | |
tree | cc09f9e0f9524bd3a0d9d8ed57d01b01143243a2 /Modules/FindTclsh.cmake | |
parent | 7adb808244669555135f87a728c983d5e382454e (diff) | |
download | CMake-99198a0765e710bafe1c3176a799c386fb4b6f5b.zip CMake-99198a0765e710bafe1c3176a799c386fb4b6f5b.tar.gz CMake-99198a0765e710bafe1c3176a799c386fb4b6f5b.tar.bz2 |
ENH: update for Tcl/Tk 8.5
Diffstat (limited to 'Modules/FindTclsh.cmake')
-rw-r--r-- | Modules/FindTclsh.cmake | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/Modules/FindTclsh.cmake b/Modules/FindTclsh.cmake index de6fc23..2f550d5 100644 --- a/Modules/FindTclsh.cmake +++ b/Modules/FindTclsh.cmake @@ -28,20 +28,12 @@ GET_FILENAME_COMPONENT( "[HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActiveTcl;CurrentVersion]" NAME) -FIND_PROGRAM(TCL_TCLSH - NAMES tclsh - tclsh86 tclsh8.6 - tclsh85 tclsh8.5 - tclsh84 tclsh8.4 - tclsh83 tclsh8.3 - tclsh82 tclsh8.2 - tclsh80 tclsh8.0 - PATHS - "${TK_WISH_PATH_PARENT}/bin" +SET(TCLTK_POSSIBLE_BIN_PATHS "${TCL_INCLUDE_PATH_PARENT}/bin" "${TK_INCLUDE_PATH_PARENT}/bin" "${TCL_LIBRARY_PATH_PARENT}/bin" "${TK_LIBRARY_PATH_PARENT}/bin" + "${TK_WISH_PATH_PARENT}/bin" "[HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActiveTcl\\${ActiveTcl_CurrentVersion}]/bin" "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.6;Root]/bin" "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.5;Root]/bin" @@ -51,9 +43,20 @@ FIND_PROGRAM(TCL_TCLSH "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.0;Root]/bin" ) +FIND_PROGRAM(TCL_TCLSH + NAMES tclsh + tclsh86 tclsh8.6 + tclsh85 tclsh8.5 + tclsh84 tclsh8.4 + tclsh83 tclsh8.3 + tclsh82 tclsh8.2 + tclsh80 tclsh8.0 + PATHS ${TCLTK_POSSIBLE_BIN_PATHS} +) + # handle the QUIETLY and REQUIRED arguments and set TIFF_FOUND to TRUE if # all listed variables are TRUE INCLUDE(FindPackageHandleStandardArgs) FIND_PACKAGE_HANDLE_STANDARD_ARGS(Tclsh DEFAULT_MSG TCL_TCLSH) -MARK_AS_ADVANCED( TCL_TCLSH ) +MARK_AS_ADVANCED(TCL_TCLSH) |