FindTclStub¶
TCL_STUB_LIBRARY_DEBUG 和 TK_STUB_LIBRARY_DEBUG 已被移除。
此模块查找 Tcl 存根库。它首先通过调用 FindTCL.cmake 来查找 Tcl 头文件和库。如何使用 Tcl 存根库
http://tcl.activestate.com/doc/howto/stubs.html
使用存根库
http://safari.oreilly.com/0130385603/ch48lev1sec3
此代码设置以下变量
TCL_STUB_LIBRARY = path to Tcl stub library
TK_STUB_LIBRARY = path to Tk stub library
TTK_STUB_LIBRARY = path to ttk stub library
为了消除一些混乱,并为那些不一定是 Tcl/Tk 大师/开发人员的人员澄清一些问题,一些变量被移动或移除。与 CMake 2.4 相比的更改是
=> these libs are not packaged by default with Tcl/Tk distributions.
Even when Tcl/Tk is built from source, several flavors of debug libs
are created and there is no real reason to pick a single one
specifically (say, amongst tclstub84g, tclstub84gs, or tclstub84sgx).
Let's leave that choice to the user by allowing him to assign
TCL_STUB_LIBRARY to any Tcl library, debug or not.