FindTclsh.cmake 743 B

123456789101112131415161718192021222324252627282930
  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. # TK_WISH = the full path to the wish binary (wish wish80 etc)
  8. #
  9. # In cygwin, look for the cygwin version first. Don't look for it later to
  10. # avoid finding the cygwin version on a Win32 build.
  11. IF(WIN32)
  12. IF(UNIX)
  13. FIND_PROGRAM(TCL_TCLSH cygtclsh80)
  14. ENDIF(UNIX)
  15. ENDIF(WIN32)
  16. FIND_PROGRAM(TCL_TCLSH
  17. NAMES tclsh
  18. tclsh84 tclsh8.4
  19. tclsh83 tclsh8.3
  20. tclsh82 tclsh8.2
  21. tclsh80 tclsh8.0
  22. )
  23. IF (WIN32)
  24. MARK_AS_ADVANCED(
  25. TCL_TCLSH
  26. )
  27. ENDIF(WIN32)