From 5a021aba41f1181092b0ba56f4dbd75d26f84b96 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 27 Feb 2025 20:22:35 +0100 Subject: [PATCH] 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 --- tests/http/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.47.3