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

CMake: allow parent project to disable unit tests for streamvbyte #22

Merged
merged 1 commit into from Mar 11, 2018

Conversation

emaxerrno
Copy link
Contributor

@emaxerrno emaxerrno commented Mar 10, 2018

While integrating into another cmake project via add_subdirectory()
the target check might already be defined by a parent directory.

In addition, on a parent project when you run its unit tests
you don't want child project unit tests to run

For example, this won't build the unit tests:

cmake -DSTREAMVBYTE_ENABLE_TESTS=OFF .. 

@lemire
Copy link
Owner

lemire commented Mar 11, 2018

Does STREAMVBYTE_ENALBE_TESTS include a typo? ENABLE vs. ENALBE?

While integrating into another cmake project via add_subdirectory()
the target `check` might already be defined by a parent directory.

In addition, on a parent project when you run its unit tests
you don't want child project unit tests to run
@emaxerrno
Copy link
Contributor Author

emaxerrno commented Mar 11, 2018

@lemire Yeah! good catch. I fixed the typo.

Also squashed the commits, and cleaned up the history

@lemire
Copy link
Owner

lemire commented Mar 11, 2018

Merging.

@lemire lemire merged commit e16c9d1 into lemire:master Mar 11, 2018
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.

None yet

2 participants