diff options
author | Brad King <brad.king@kitware.com> | 2010-01-13 12:57:38 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-01-13 12:57:38 -0500 |
commit | fdbe16c1f4cc22422ae3d923834d4d956263e580 (patch) | |
tree | 565013f296f8f34968ee215737b174629f3d60e0 /Modules | |
parent | da36cde059f0e4786d65974decb84c8380ee1624 (diff) | |
download | cmake-fdbe16c1f4cc22422ae3d923834d4d956263e580.tar.gz |
Use if(CYGWIN) instead of if(WIN32 AND UNIX)
CMake has defined CYGWIN on Cygwin for years, so we no longer need the
legacy form of the test. Change based on patch from issue #10122.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindTclsh.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindTclsh.cmake b/Modules/FindTclsh.cmake index ff0d0a5884..9b7529b8aa 100644 --- a/Modules/FindTclsh.cmake +++ b/Modules/FindTclsh.cmake @@ -20,9 +20,9 @@ # (To distributed this file outside of CMake, substitute the full # License text for the above reference.) -IF(WIN32 AND UNIX) +IF(CYGWIN) FIND_PROGRAM(TCL_TCLSH NAMES cygtclsh83 cygtclsh80) -ENDIF(WIN32 AND UNIX) +ENDIF(CYGWIN) GET_FILENAME_COMPONENT(TK_WISH_PATH "${TK_WISH}" PATH) GET_FILENAME_COMPONENT(TK_WISH_PATH_PARENT "${TK_WISH_PATH}" PATH) |