summaryrefslogtreecommitdiffstats
path: root/Modules/FindIconv.cmake
diff options
context:
space:
mode:
authorJuan Ramos <juan.ramos@kitware.com>2024-03-29 20:51:59 (GMT)
committerJuan Ramos <juan.ramos@kitware.com>2024-03-29 20:51:59 (GMT)
commit3cd64287fefd536561c155a0fbb1f549ab066d0e (patch)
treef8ad4a5d09c90dae7be0dec761f298fb330bfac8 /Modules/FindIconv.cmake
parent2e3692bde08c071fdb00f201eaa6dc0116de436b (diff)
downloadCMake-3cd64287fefd536561c155a0fbb1f549ab066d0e.zip
CMake-3cd64287fefd536561c155a0fbb1f549ab066d0e.tar.gz
CMake-3cd64287fefd536561c155a0fbb1f549ab066d0e.tar.bz2
Modules: Fix CMP0159 warnings in modules when tracing
Closes: #25829
Diffstat (limited to 'Modules/FindIconv.cmake')
-rw-r--r--Modules/FindIconv.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/FindIconv.cmake b/Modules/FindIconv.cmake
index 1426174..879ff16f 100644
--- a/Modules/FindIconv.cmake
+++ b/Modules/FindIconv.cmake
@@ -75,6 +75,9 @@ The following cache variables may also be set:
#]=======================================================================]
+cmake_policy(PUSH)
+cmake_policy(SET CMP0159 NEW) # file(STRINGS) with REGEX updates CMAKE_MATCH_<n>
+
include(${CMAKE_CURRENT_LIST_DIR}/CMakePushCheckState.cmake)
if(CMAKE_C_COMPILER_LOADED)
include(${CMAKE_CURRENT_LIST_DIR}/CheckCSourceCompiles.cmake)
@@ -180,3 +183,5 @@ if(Iconv_FOUND)
set_property(TARGET Iconv::Iconv PROPERTY INTERFACE_LINK_LIBRARIES "${Iconv_LIBRARIES}")
endif()
endif()
+
+cmake_policy(POP)