From 0dc19894f43ae03a7e78dabfb3784695bd0216fd Mon Sep 17 00:00:00 2001
From: Sadie Powell
Date: Sun, 19 Apr 2026 12:54:16 +0100
Subject: Switch the build system to CMake.
---
modules/httpd.cpp | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
(limited to 'modules/httpd.cpp')
diff --git a/modules/httpd.cpp b/modules/httpd.cpp
index 82a113832..ff1a842c0 100644
--- a/modules/httpd.cpp
+++ b/modules/httpd.cpp
@@ -26,8 +26,14 @@
* along with this program. If not, see .
*/
-/// $CompilerFlags: require_environment("SYSTEM_HTTP_PARSER" "1") -DUSE_SYSTEM_HTTP_PARSER
-/// $LinkerFlags: require_environment("SYSTEM_HTTP_PARSER" "1") -lhttp_parser
+/// BEGIN CMAKE
+/// if($ENV{SYSTEM_HTTP_PARSER})
+/// target_compile_definitions(${TARGET} "USE_SYSTEM_HTTP_PARSER")
+/// target_link_libraries(${TARGET} PRIVATE "http_parser")
+/// else()
+/// target_link_libraries(${TARGET} PRIVATE "vendored_http_parser")
+/// endif()
+/// END CMAKE
#include "inspircd.h"
@@ -48,7 +54,7 @@
#ifdef USE_SYSTEM_HTTP_PARSER
# include
#else
-# include
+# include
#endif
#ifdef __GNUC__
--
cgit v1.3.1-10-gc9f91