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 "bundle mode" option for build system. #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add "bundle mode" option for build system. #15

wants to merge 1 commit into from

Conversation

nemequ
Copy link

@nemequ nemequ commented Jun 24, 2016

This makes it relatively easy for CMake-based projects to bundle libdivsufsort instead of creating a hard external dependency. With this patch, they can simply add_subdirectory(libdivsufsort), and divsufsort_{LIBRARIES,INCLUDE_DIRS,DEFINITIONS} will be set to the appropriate values. libdivsufsort will be built as a static library, and installation will be disabled.

You can see an example of how it can be used at https://github.com/nemequ/bce/tree/bundle-libdivsufsort

This makes it relatively easy for CMake-based projects to bundle
libdivsufsort instead of creating a hard external dependency.  With
this patch, they can simply add_subdirectory(libdivsufsort), and
divsufsort_{LIBRARIES,INCLUDE_DIRS,DEFINITIONS} will be set to the
appropriate values.  libdivsufsort will be built as a static library,
and installation will be disabled.
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.

2 participants