diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2008-01-26 06:11:04 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2008-01-26 06:11:04 (GMT) |
commit | 59d29d6079b735452e18676b0e572f6601d40fa7 (patch) | |
tree | 68eceea8541711172415181a79548b8e3c7ae146 /Modules/FindTclStub.cmake | |
parent | a35145fb272802a9c1ddf10fdcfc1f27a4361816 (diff) | |
download | CMake-59d29d6079b735452e18676b0e572f6601d40fa7.zip CMake-59d29d6079b735452e18676b0e572f6601d40fa7.tar.gz CMake-59d29d6079b735452e18676b0e572f6601d40fa7.tar.bz2 |
ENH: Update Tcl/Tk 8.5
Diffstat (limited to 'Modules/FindTclStub.cmake')
-rw-r--r-- | Modules/FindTclStub.cmake | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/Modules/FindTclStub.cmake b/Modules/FindTclStub.cmake index 05d43da..788dbe4 100644 --- a/Modules/FindTclStub.cmake +++ b/Modules/FindTclStub.cmake @@ -24,18 +24,26 @@ INCLUDE(FindTCL) GET_FILENAME_COMPONENT(TCL_TCLSH_PATH "${TCL_TCLSH}" PATH) GET_FILENAME_COMPONENT(TCL_TCLSH_PATH_PARENT "${TCL_TCLSH_PATH}" PATH) +STRING(REGEX REPLACE + "^.*tclsh([0-9]\\.*[0-9]).*$" "\\1" TCL_TCLSH_VERSION "${TCL_TCLSH}") GET_FILENAME_COMPONENT(TK_WISH_PATH "${TK_WISH}" PATH) GET_FILENAME_COMPONENT(TK_WISH_PATH_PARENT "${TK_WISH_PATH}" PATH) +STRING(REGEX REPLACE + "^.*wish([0-9]\\.*[0-9]).*$" "\\1" TK_WISH_VERSION "${TK_WISH}") GET_FILENAME_COMPONENT(TCL_INCLUDE_PATH_PARENT "${TCL_INCLUDE_PATH}" PATH) GET_FILENAME_COMPONENT(TK_INCLUDE_PATH_PARENT "${TK_INCLUDE_PATH}" PATH) GET_FILENAME_COMPONENT(TCL_LIBRARY_PATH "${TCL_LIBRARY}" PATH) GET_FILENAME_COMPONENT(TCL_LIBRARY_PATH_PARENT "${TCL_LIBRARY_PATH}" PATH) +STRING(REGEX REPLACE + "^.*tcl([0-9]\\.*[0-9]).*$" "\\1" TCL_LIBRARY_VERSION "${TCL_LIBRARY}") GET_FILENAME_COMPONENT(TK_LIBRARY_PATH "${TK_LIBRARY}" PATH) GET_FILENAME_COMPONENT(TK_LIBRARY_PATH_PARENT "${TK_LIBRARY_PATH}" PATH) +STRING(REGEX REPLACE + "^.*tk([0-9]\\.*[0-9]).*$" "\\1" TK_LIBRARY_VERSION "${TK_LIBRARY}") SET(TCLTK_POSSIBLE_LIB_PATHS "${TCL_INCLUDE_PATH_PARENT}/lib" @@ -68,7 +76,9 @@ IF(WIN32) ENDIF(WIN32) FIND_LIBRARY(TCL_STUB_LIBRARY - NAMES tclstub + NAMES + tclstub + tclstub${TK_LIBRARY_VERSION} tclstub${TCL_TCLSH_VERSION} tclstub${TK_WISH_VERSION} tclstub86 tclstub8.6 tclstub85 tclstub8.5 tclstub84 tclstub8.4 @@ -79,7 +89,9 @@ FIND_LIBRARY(TCL_STUB_LIBRARY ) FIND_LIBRARY(TK_STUB_LIBRARY - NAMES tkstub + NAMES + tkstub + tkstub${TCL_LIBRARY_VERSION} tkstub${TCL_TCLSH_VERSION} tkstub${TK_WISH_VERSION} tkstub86 tkstub8.6 tkstub85 tkstub8.5 tkstub84 tkstub8.4 |