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.