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.