Add CMake options for more build granularity#233
Merged
markos merged 1 commit intoVectorCamp:developfrom Mar 12, 2024
Merged
Conversation
This adds three new CMake options, all defaulting to true, making it possible to opt-out of building parts of Vectorscan that are not essential for deployment of the matching runtime. These new options: - `BUILD_UNIT`: control whether the `unit` directory is included - `BUILD_DOC`: control whether the `doc` directory is included - `BUILD_TOOLS`: control whether the `tools` directory is included
markos
added a commit
that referenced
this pull request
Oct 24, 2025
Add CMake options for more build granularity
markos
added a commit
that referenced
this pull request
Oct 24, 2025
Add CMake options for more build granularity
markos
added a commit
that referenced
this pull request
Oct 24, 2025
Add CMake options for more build granularity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I vendor Vectorscan as part of Nosey Parker. In that use case, I only build vectorscan for its runtime system, and don't build the tests, docs, standalone tools, or a few other pieces. I've had to patch Vectorscan locally to exclude several parts from the build.
Some parts that I have disabled may be useful for other users of Vectorscan, so I've put them in a pull request here.
This pull request adds three new CMake options, all defaulting to true, making it possible to opt-out of building parts of Vectorscan that are not essential for deployment of the matching runtime.
These new options:
BUILD_UNIT: control whether theunitdirectory is includedBUILD_DOC: control whether thedocdirectory is includedBUILD_TOOLS: control whether thetoolsdirectory is included