Skip to content

fix(cmake): enable webserver deps on macOS (httplib include/link)#3832

Open
yoderme wants to merge 2 commits intofalcosecurity:masterfrom
yoderme:myoder/fix-build-on-macos
Open

fix(cmake): enable webserver deps on macOS (httplib include/link)#3832
yoderme wants to merge 2 commits intofalcosecurity:masterfrom
yoderme:myoder/fix-build-on-macos

Conversation

@yoderme
Copy link

@yoderme yoderme commented Mar 20, 2026

Root CMake skipped openssl/curl/cpp-httplib and c-ares on APPLE while state.h still included webserver.h on all non-Windows Unix builds, causing missing httplib.h on Darwin. Align userspace/falco targets with those conditions, fix FALCO_INCLUDE_DIRECTORIES typo, and gate CPPHTTPLIB_OPENSSL_SUPPORT with the webserver block.

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

/kind release

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area build

/area engine

/area tests

/area proposals

/area CI

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #3831

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

fix(cmake): enable webserver deps (httplib) on macOS

@poiana
Copy link
Contributor

poiana commented Mar 20, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: yoderme
Once this PR has been reviewed and has the lgtm label, please assign jasondellaluce for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana
Copy link
Contributor

poiana commented Mar 20, 2026

Welcome @yoderme! It looks like this is your first PR to falcosecurity/falco 🎉

@poiana poiana added the size/S label Mar 20, 2026
Root CMake skipped openssl/curl/cpp-httplib and c-ares on APPLE while
state.h still included webserver.h on all non-Windows Unix builds,
causing missing httplib.h on Darwin. Align userspace/falco targets with
those conditions, fix FALCO_INCLUDE_DIRECTORIES typo, and gate
CPPHTTPLIB_OPENSSL_SUPPORT with the webserver block.

Signed-off-by: Mike Yoder <myoder@roblox.com>
Signed-off-by: Mike Yoder <myoder@roblox.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Build fails on macOS: httplib.h not found when compiling falco_application

2 participants