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
This commit is contained in:
Viktor Szakats 2025-02-27 20:22:35 +01:00
parent 6913c9b6ab
commit 5a021aba41
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View 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()