From: Viktor Szakats Date: Thu, 27 Feb 2025 19:22:35 +0000 (+0100) Subject: cmake: improve httpd detection for pytest X-Git-Tag: curl-8_13_0~321 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a021aba41f1181092b0ba56f4dbd75d26f84b96;p=thirdparty%2Fcurl.git cmake: improve httpd detection for pytest Look for `httpd` in addition to `apache2`, like `./configure` does. It fixes detection with macOS Homebrew for example. Closes #16515 --- diff --git a/tests/http/CMakeLists.txt b/tests/http/CMakeLists.txt index f668c85309..0c2d65f17f 100644 --- a/tests/http/CMakeLists.txt +++ b/tests/http/CMakeLists.txt @@ -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()