]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: improve httpd detection for pytest
authorViktor Szakats <commit@vsz.me>
Thu, 27 Feb 2025 19:22:35 +0000 (20:22 +0100)
committerViktor Szakats <commit@vsz.me>
Fri, 28 Feb 2025 02:40:40 +0000 (03:40 +0100)
Look for `httpd` in addition to `apache2`, like `./configure` does.
It fixes detection with macOS Homebrew for example.

Closes #16515

tests/http/CMakeLists.txt

index f668c853098d49a9570a806b03c25d4bd315c3b2..0c2d65f17f4384fb69643f3108bd6fe61a1f395a 100644 (file)
@@ -34,7 +34,7 @@ if(NOT VSFTPD)
 endif()
 mark_as_advanced(VSFTPD)
 
-find_program(HTTPD "apache2")  # /usr/sbin/apache2
+find_program(HTTPD NAMES "/usr/sbin/apache2" "httpd" "apache2")
 if(NOT HTTPD)
   set(HTTPD "")
 endif()