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/FindSDL_net.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/FindSDL_net.cmake')
-rw-r--r-- | Modules/FindSDL_net.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/FindSDL_net.cmake b/Modules/FindSDL_net.cmake index 639e5bd..9d0b949 100644 --- a/Modules/FindSDL_net.cmake +++ b/Modules/FindSDL_net.cmake @@ -32,6 +32,9 @@ $SDLDIR is an environment variable that would correspond to the ./configure --prefix=$SDLDIR used in building SDL. #]=======================================================================] +cmake_policy(PUSH) +cmake_policy(SET CMP0159 NEW) # file(STRINGS) with REGEX updates CMAKE_MATCH_<n> + if(NOT SDL_NET_INCLUDE_DIR AND SDLNET_INCLUDE_DIR) set(SDL_NET_INCLUDE_DIR ${SDLNET_INCLUDE_DIR} CACHE PATH "directory cache entry initialized from old variable name") @@ -94,3 +97,5 @@ set(SDLNET_INCLUDE_DIR ${SDL_NET_INCLUDE_DIRS}) set(SDLNET_FOUND ${SDL_NET_FOUND}) mark_as_advanced(SDL_NET_LIBRARY SDL_NET_INCLUDE_DIR) + +cmake_policy(POP) |