Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ZeekBundle for integrating third-party components into our builds #117

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

ckreibich
Copy link
Member

This is exactly @Neverlord's #115, without the removal of FindPrometheus.cmake and with a bit of context in the commit message since development of ZeekBundle.cmake happened in Dominik's Broker branch before moving over here.

@ckreibich ckreibich force-pushed the topic/christian/prometheus-cpp branch from 4365698 to d6048b7 Compare July 10, 2024 21:47
Copy link
Member

@timwoj timwoj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor nit. Looks fine otherwise.

ZeekBundle.cmake Outdated
set(ZEEK_BUNDLE_PREFIX "${PROJECT_BINARY_DIR}/zeek-bundle"
CACHE STRING "Path to the Zeek packages cache directory")

# Opt-in to changed CMake behavior for fetch ZIP files.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Opt-in to changed CMake behavior for fetch ZIP files.
# Opt-in to changed CMake behavior for fetching ZIP files.

This provides an experimental alternative configuration & build approach for
third-party submodules. It introduces a small CMake abstraction that will build
the library separately at configuration time to isolate it from other
targets. Then, we use `find_package` to pick up the (static) library from our
build directory.

For an example of its use, see Broker's CMakeLists.txt.

Co-authored-by: Christian Kreibich <[email protected]>
@ckreibich ckreibich force-pushed the topic/christian/prometheus-cpp branch from d6048b7 to ad08eb1 Compare July 11, 2024 17:56
@ckreibich ckreibich merged commit 690483f into master Jul 11, 2024
1 check passed
@ckreibich ckreibich deleted the topic/christian/prometheus-cpp branch July 11, 2024 19:10
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.

3 participants