ENH: change the search path order (if several Tcl/Tk are installed, the "current" version is likely to be the one that is bound to the wish/tclsh found in the PATH)

This commit is contained in:
Sebastien Barre 2002-07-29 09:46:50 -04:00
parent 8fc6bce000
commit 7dffa485f6
1 changed files with 2 additions and 2 deletions

View File

@ -79,6 +79,8 @@ FIND_LIBRARY(TK_STUB_LIBRARY_DEBUG
) )
SET (TCLTK_POSSIBLE_INCLUDE_PATHS SET (TCLTK_POSSIBLE_INCLUDE_PATHS
"${TCL_TCLSH_PATH}/../include"
"${TK_WISH_PATH}/../include"
/usr/include /usr/include
/usr/local/include /usr/local/include
/usr/include/tcl8.4 /usr/include/tcl8.4
@ -91,8 +93,6 @@ SET (TCLTK_POSSIBLE_INCLUDE_PATHS
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.3;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.2;Root]/include
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.0;Root]/include [HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.0;Root]/include
"${TCL_TCLSH_PATH}/../include"
"${TK_WISH_PATH}/../include"
) )
FIND_PATH(TCL_INCLUDE_PATH tcl.h FIND_PATH(TCL_INCLUDE_PATH tcl.h