Skip to content

fix(cmake): only include zlib with the bundled falcosecurity libs - #2190

Open
angeloc wants to merge 1 commit into
draios:devfrom
angeloc:cmake-zlib-shared-libs
Open

angeloc wants to merge 1 commit into
draios:devfrom
angeloc:cmake-zlib-shared-libs

Conversation

@angeloc

@angeloc angeloc commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Since commit 0d3e86d ("chore(cmake): use zlib from libs"), the zlib CMake module comes from the falcosecurity libs, whose CMake modules are only added to CMAKE_MODULE_PATH when building the bundled falcosecurity libs. So, when linking to the shared falcosecurity libs (USE_BUNDLED_FALCOSECURITY_LIBS=OFF), including the zlib module fails:

include could not find requested file:

zlib

sysdig doesn't use zlib directly, the module is only needed to build the bundled falcosecurity libs, so only include it in that case.

Since commit 0d3e86d ("chore(cmake): use zlib from libs"), the zlib
CMake module comes from the falcosecurity libs, whose CMake modules
are only added to CMAKE_MODULE_PATH when building the bundled
falcosecurity libs. So, when linking to the shared falcosecurity libs
(USE_BUNDLED_FALCOSECURITY_LIBS=OFF), including the zlib module fails:

  include could not find requested file:

    zlib

sysdig doesn't use zlib directly, the module is only needed to build the
bundled falcosecurity libs, so only include it in that case.

Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
@angeloc
angeloc requested a review from therealbobo as a code owner October 30, 2026 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant