summaryrefslogtreecommitdiffstats
path: root/Modules/FindPython
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-04-01 13:42:47 (GMT)
committerKitware Robot <kwrobot@kitware.com>2024-04-01 13:43:14 (GMT)
commitad13d016217741903b1eb8c83e6929dc504d55b5 (patch)
tree2a2e765a36d6700aaa38891e24c82139a29a5e70 /Modules/FindPython
parentdea9982990368c3af03bcda27f190cc7f29a2bf0 (diff)
parent3cd64287fefd536561c155a0fbb1f549ab066d0e (diff)
downloadCMake-ad13d016217741903b1eb8c83e6929dc504d55b5.zip
CMake-ad13d016217741903b1eb8c83e6929dc504d55b5.tar.gz
CMake-ad13d016217741903b1eb8c83e6929dc504d55b5.tar.bz2
Merge topic 'cmp0159_warnings'
3cd64287fe Modules: Fix CMP0159 warnings in modules when tracing Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9385
Diffstat (limited to 'Modules/FindPython')
-rw-r--r--Modules/FindPython/Support.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/FindPython/Support.cmake b/Modules/FindPython/Support.cmake
index 0256867..410b736 100644
--- a/Modules/FindPython/Support.cmake
+++ b/Modules/FindPython/Support.cmake
@@ -20,6 +20,8 @@ cmake_policy (SET CMP0057 NEW)
cmake_policy (SET CMP0124 NEW)
# registry view behavior
cmake_policy (SET CMP0134 NEW)
+# file(STRINGS) with REGEX updates CMAKE_MATCH_<n>
+cmake_policy(SET CMP0159 NEW)
if (NOT DEFINED _PYTHON_PREFIX)
message (FATAL_ERROR "FindPython: INTERNAL ERROR")