FindTclsh.cmake 670 B

1234567891011121314151617181920212223242526272829
  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 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. )
  22. IF (WIN32)
  23. MARK_AS_ADVANCED(
  24. TCL_TCLSH
  25. )
  26. ENDIF(WIN32)