summaryrefslogtreecommitdiff
path: root/Modules/FindTCL.cmake
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-10-08 09:20:15 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-10-08 09:20:15 +0900
commitef5fd1a2282098bbb9224cc8ca30f0cc5d712545 (patch)
treef0a14aff99171c74a8ca200e25864af6675973ec /Modules/FindTCL.cmake
parente8d6bf7da6f7f166bcb566ecfd646d20e83f10d2 (diff)
downloadcmake-ef5fd1a2282098bbb9224cc8ca30f0cc5d712545.tar.gz
cmake-ef5fd1a2282098bbb9224cc8ca30f0cc5d712545.tar.bz2
cmake-ef5fd1a2282098bbb9224cc8ca30f0cc5d712545.zip
Imported Upstream version 3.18.2upstream/3.18.2
Diffstat (limited to 'Modules/FindTCL.cmake')
-rw-r--r--Modules/FindTCL.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/FindTCL.cmake b/Modules/FindTCL.cmake
index 960265f9f..9b771dcd7 100644
--- a/Modules/FindTCL.cmake
+++ b/Modules/FindTCL.cmake
@@ -223,6 +223,12 @@ find_path(TK_INCLUDE_PATH
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
+if (CMAKE_FIND_PACKAGE_NAME STREQUAL "TclStub")
+ # FindTclStub include()'s this module. It's an old pattern, but rather than
+ # trying to suppress this from outside the module (which is then sensitive to
+ # the contents, detect the case in this module and suppress it explicitly.
+ set(FPHSA_NAME_MISMATCHED 1)
+endif ()
FIND_PACKAGE_HANDLE_STANDARD_ARGS(TCL DEFAULT_MSG TCL_LIBRARY TCL_INCLUDE_PATH)
set(FPHSA_NAME_MISMATCHED 1)
set(TCLTK_FIND_REQUIRED ${TCL_FIND_REQUIRED})