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/FindALSA.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/FindALSA.cmake')
-rw-r--r-- | Modules/FindALSA.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/FindALSA.cmake b/Modules/FindALSA.cmake index 627866a..e332c14 100644 --- a/Modules/FindALSA.cmake +++ b/Modules/FindALSA.cmake @@ -43,6 +43,9 @@ The following cache variables may also be set: the absolute path of the asound library #]=======================================================================] +cmake_policy(PUSH) +cmake_policy(SET CMP0159 NEW) # file(STRINGS) with REGEX updates CMAKE_MATCH_<n> + find_path(ALSA_INCLUDE_DIR NAMES alsa/asoundlib.h DOC "The ALSA (asound) include directory" ) @@ -74,3 +77,5 @@ if(ALSA_FOUND) endif() mark_as_advanced(ALSA_INCLUDE_DIR ALSA_LIBRARY) + +cmake_policy(POP) |