diff options
Diffstat (limited to 'Modules/FindTclsh.cmake')
-rw-r--r-- | Modules/FindTclsh.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/FindTclsh.cmake b/Modules/FindTclsh.cmake index 5a7e68a..362a078 100644 --- a/Modules/FindTclsh.cmake +++ b/Modules/FindTclsh.cmake @@ -14,6 +14,9 @@ IF(WIN32) ENDIF(UNIX) ENDIF(WIN32) +GET_FILENAME_COMPONENT(TCL_LIBRARY_PATH "${TCL_LIBRARY}" PATH) +GET_FILENAME_COMPONENT(TK_LIBRARY_PATH "${TK_LIBRARY}" PATH) + FIND_PROGRAM(TCL_TCLSH NAMES tclsh tclsh84 tclsh8.4 @@ -21,6 +24,10 @@ FIND_PROGRAM(TCL_TCLSH tclsh82 tclsh8.2 tclsh80 tclsh8.0 PATHS + "${TCL_INCLUDE_PATH}/../bin" + "${TK_INCLUDE_PATH}/../bin" + "${TCL_LIBRARY_PATH}/../bin" + "${TK_LIBRARY_PATH}/../bin" [HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.4;Root]/bin [HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.3;Root]/bin [HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.2;Root]/bin |