From: Viktor Szakats Date: Wed, 23 Apr 2025 08:52:06 +0000 (+0200) Subject: cmake: fix `fish` install directory detection via `pkg-config` X-Git-Tag: curl-8_14_0~238 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73b6f8d2fef008f853d5903477220e3eb9d6a667;p=thirdparty%2Fcurl.git cmake: fix `fish` install directory detection via `pkg-config` Follow-up to c8b0f0c9ad78eafc6c8f0005113de346ee797c21 #16833 Closes #17147 --- diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index 95a01b5068..a627184e45 100644 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -56,7 +56,7 @@ if(CURL_COMPLETION_FISH OR if(NOT CURL_COMPLETION_FISH_DIR) find_package(PkgConfig QUIET) pkg_get_variable(CURL_COMPLETION_FISH_DIR "fish" "completionsdir") - if(NOT _pkg_fish_completionsdir) + if(NOT CURL_COMPLETION_FISH_DIR) if(CMAKE_INSTALL_DATAROOTDIR) set(CURL_COMPLETION_FISH_DIR "${CMAKE_INSTALL_DATAROOTDIR}/fish/vendor_completions.d") endif()