summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBerk Geveci <berk.geveci@kitware.com>2001-11-26 20:45:59 (GMT)
committerBerk Geveci <berk.geveci@kitware.com>2001-11-26 20:45:59 (GMT)
commit3057b6a7aa02d3cf31f3592d5ed95e718a5c3173 (patch)
treedfeaed82dd6d0189f12359dba66e97e5376780f2 /Modules
parent7850f7b3194ec51b0295a3d4a3cadb3778785263 (diff)
downloadCMake-3057b6a7aa02d3cf31f3592d5ed95e718a5c3173.zip
CMake-3057b6a7aa02d3cf31f3592d5ed95e718a5c3173.tar.gz
CMake-3057b6a7aa02d3cf31f3592d5ed95e718a5c3173.tar.bz2
TK_INTERNAL_PATH is only needed on Windows.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindTCL.cmake24
1 files changed, 13 insertions, 11 deletions
diff --git a/Modules/FindTCL.cmake b/Modules/FindTCL.cmake
index e218747..8c01694 100644
--- a/Modules/FindTCL.cmake
+++ b/Modules/FindTCL.cmake
@@ -87,14 +87,16 @@ FIND_PATH(TK_INCLUDE_PATH tk.h
"${TK_WISH_PATH}/../include"
)
-FIND_PATH(TK_INTERNAL_PATH tkWinInt.h
- /usr/include
- /usr/local/include
- "C:/Program Files/Tcl/include"
- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.4;Root]/include
- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.3;Root]/include
- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.2;Root]/include
- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.0;Root]/include
- "${TCL_TCLSH_PATH}/../include"
- "${TK_WISH_PATH}/../include"
-)
+IF (WIN32)
+ FIND_PATH(TK_INTERNAL_PATH tkWinInt.h
+ /usr/include
+ /usr/local/include
+ "C:/Program Files/Tcl/include"
+ [HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.4;Root]/include
+ [HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.3;Root]/include
+ [HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.2;Root]/include
+ [HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.0;Root]/include
+ "${TCL_TCLSH_PATH}/../include"
+ "${TK_WISH_PATH}/../include"
+ )
+ENDIF(WIN32)