]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: fix `fish` install directory detection via `pkg-config`
authorViktor Szakats <commit@vsz.me>
Wed, 23 Apr 2025 08:52:06 +0000 (10:52 +0200)
committerViktor Szakats <commit@vsz.me>
Wed, 23 Apr 2025 09:34:27 +0000 (11:34 +0200)
Follow-up to c8b0f0c9ad78eafc6c8f0005113de346ee797c21 #16833

Closes #17147

scripts/CMakeLists.txt

index 95a01b50683a5aeff2495da7f8c04326e6a6271d..a627184e45e5a807571a3547ad827c87a7977538 100644 (file)
@@ -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()