FindTclsh.cmake 947 B

12345678910111213141516171819202122232425262728293031323334
  1. #
  2. # This module finds if TCL is installed and determines where the
  3. # include files and libraries are. It also determines what the name of
  4. # the library is. This code sets the following variables:
  5. #
  6. # TCL_TCLSH = the full path to the tclsh binary (tcl tcl80 etc)
  7. #
  8. # In cygwin, look for the cygwin version first. Don't look for it later to
  9. # avoid finding the cygwin version on a Win32 build.
  10. IF(WIN32)
  11. IF(UNIX)
  12. FIND_PROGRAM(TCL_TCLSH NAMES cygtclsh83 cygtclsh80)
  13. ENDIF(UNIX)
  14. ENDIF(WIN32)
  15. FIND_PROGRAM(TCL_TCLSH
  16. NAMES tclsh
  17. tclsh84 tclsh8.4
  18. tclsh83 tclsh8.3
  19. tclsh82 tclsh8.2
  20. tclsh80 tclsh8.0
  21. PATHS
  22. [HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.4;Root]/bin
  23. [HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.3;Root]/bin
  24. [HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.2;Root]/bin
  25. [HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.0;Root]/bin
  26. )
  27. IF (WIN32)
  28. MARK_AS_ADVANCED(
  29. TCL_TCLSH
  30. )
  31. ENDIF(WIN32)