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:
parent
8fc6bce000
commit
7dffa485f6
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue