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:
parent
6913c9b6ab
commit
5a021aba41
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user