summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-09-02 14:26:11 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-09-02 14:26:21 (GMT)
commitc8991f17cf5bb07fc1b0d7fa68e9613fa8617900 (patch)
treedceeef250b3a8faa49e75fc3caa503bb4d4f4aae
parentbd7003b858f641117be0ef21334e2294aa00dc64 (diff)
parentd186797cf6d084ad8c198475757aaa6a33ddbcc7 (diff)
downloadCMake-c8991f17cf5bb07fc1b0d7fa68e9613fa8617900.zip
CMake-c8991f17cf5bb07fc1b0d7fa68e9613fa8617900.tar.gz
CMake-c8991f17cf5bb07fc1b0d7fa68e9613fa8617900.tar.bz2
Merge topic 'cmake-packages-pkg-cfg-file-example'
d186797cf6 Help: Fix regex in example of cmake-packages(7) Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !6489
-rw-r--r--Help/manual/cmake-packages.7.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Help/manual/cmake-packages.7.rst b/Help/manual/cmake-packages.7.rst
index 5262105..5c109ff 100644
--- a/Help/manual/cmake-packages.7.rst
+++ b/Help/manual/cmake-packages.7.rst
@@ -449,7 +449,7 @@ be true. This can be tested with logic in the package configuration file:
set(_supported_components Plot Table)
foreach(_comp ${ClimbingStats_FIND_COMPONENTS})
- if (NOT ";${_supported_components};" MATCHES _comp)
+ if (NOT ";${_supported_components};" MATCHES ";${_comp};")
set(ClimbingStats_FOUND False)
set(ClimbingStats_NOT_FOUND_MESSAGE "Unsupported component: ${_comp}")
endif()