From 3057b6a7aa02d3cf31f3592d5ed95e718a5c3173 Mon Sep 17 00:00:00 2001 From: Berk Geveci Date: Mon, 26 Nov 2001 15:45:59 -0500 Subject: TK_INTERNAL_PATH is only needed on Windows. --- Modules/FindTCL.cmake | 24 +++++++++++++----------- 1 file 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) -- cgit v0.12