diff options
author | Juan Ramos <juan.ramos@kitware.com> | 2024-03-29 20:51:59 (GMT) |
---|---|---|
committer | Juan Ramos <juan.ramos@kitware.com> | 2024-03-29 20:51:59 (GMT) |
commit | 3cd64287fefd536561c155a0fbb1f549ab066d0e (patch) | |
tree | f8ad4a5d09c90dae7be0dec761f298fb330bfac8 /Modules/FindPNG.cmake | |
parent | 2e3692bde08c071fdb00f201eaa6dc0116de436b (diff) | |
download | CMake-3cd64287fefd536561c155a0fbb1f549ab066d0e.zip CMake-3cd64287fefd536561c155a0fbb1f549ab066d0e.tar.gz CMake-3cd64287fefd536561c155a0fbb1f549ab066d0e.tar.bz2 |
Modules: Fix CMP0159 warnings in modules when tracing
Closes: #25829
Diffstat (limited to 'Modules/FindPNG.cmake')
-rw-r--r-- | Modules/FindPNG.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/FindPNG.cmake b/Modules/FindPNG.cmake index 043b69c..4294326 100644 --- a/Modules/FindPNG.cmake +++ b/Modules/FindPNG.cmake @@ -48,6 +48,9 @@ Since PNG depends on the ZLib compression library, none of the above will be defined unless ZLib can be found. #]=======================================================================] +cmake_policy(PUSH) +cmake_policy(SET CMP0159 NEW) # file(STRINGS) with REGEX updates CMAKE_MATCH_<n> + # Default install location on windows when installing from included cmake build # From FindZLIB.cmake set(_PNG_x86 "(x86)") @@ -177,3 +180,5 @@ include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) find_package_handle_standard_args(PNG REQUIRED_VARS PNG_LIBRARY PNG_PNG_INCLUDE_DIR VERSION_VAR PNG_VERSION_STRING) + +cmake_policy(POP) |