cmake: replace deprecated PERL_FOUND with Perl_FOUND

`Perl_FOUND` available since CMake v3.3.
`PERL_FOUND` deprecated since v4.2.

Ref: https://cmake.org/cmake/help/v4.2/module/FindPerl.html

Closes #20011
This commit is contained in:
Viktor Szakats 2025-12-17 15:51:24 +01:00
parent cd046f6c93
commit 14d5b6c7a7
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
3 changed files with 7 additions and 7 deletions

View file

@ -27,7 +27,7 @@ option(CURL_COMPLETION_ZSH "Install zsh completions" OFF)
if(CURL_COMPLETION_FISH OR
CURL_COMPLETION_ZSH)
if(PERL_FOUND)
if(Perl_FOUND)
if(CURL_COMPLETION_FISH)
set(_completion_fish "${CMAKE_CURRENT_BINARY_DIR}/curl.fish")
add_custom_command(OUTPUT "${_completion_fish}"