diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2008-01-25 00:31:24 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2008-01-25 00:31:24 (GMT) |
commit | af9987ed79a7e34173c41c439f002dd940b07861 (patch) | |
tree | 0c61a6c058c6c5477b5190959697d86fb5a209f4 /Modules/FindTclsh.cmake | |
parent | f1c5b50cb7ede677ea16c64da942397c42bdc6d5 (diff) | |
download | CMake-af9987ed79a7e34173c41c439f002dd940b07861.zip CMake-af9987ed79a7e34173c41c439f002dd940b07861.tar.gz CMake-af9987ed79a7e34173c41c439f002dd940b07861.tar.bz2 |
ENH: update for Tcl/Tk 8.5
Diffstat (limited to 'Modules/FindTclsh.cmake')
-rw-r--r-- | Modules/FindTclsh.cmake | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Modules/FindTclsh.cmake b/Modules/FindTclsh.cmake index 2f550d5..709b886 100644 --- a/Modules/FindTclsh.cmake +++ b/Modules/FindTclsh.cmake @@ -43,14 +43,22 @@ SET(TCLTK_POSSIBLE_BIN_PATHS "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.0;Root]/bin" ) -FIND_PROGRAM(TCL_TCLSH - NAMES tclsh +SET(TCL_TCLSH_NAMES + tclsh tclsh86 tclsh8.6 tclsh85 tclsh8.5 tclsh84 tclsh8.4 tclsh83 tclsh8.3 tclsh82 tclsh8.2 tclsh80 tclsh8.0 +) + +FIND_PROGRAM(TCL_TCLSH + NAMES ${TCL_TCLSH_NAMES} + PATHS ${TCLTK_POSSIBLE_BIN_PATHS} NO_DEFAULT_PATH +) +FIND_PROGRAM(TCL_TCLSH + NAMES ${TCL_TCLSH_NAME} PATHS ${TCLTK_POSSIBLE_BIN_PATHS} ) |