diff options
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} ) |