Skip to content
This repository has been archived by the owner on Mar 26, 2020. It is now read-only.

Add option to disable unit tests #66

Merged
merged 1 commit into from Jul 26, 2016
Merged

Add option to disable unit tests #66

merged 1 commit into from Jul 26, 2016

Conversation

4brunu
Copy link
Contributor

@4brunu 4brunu commented Jul 11, 2016

This PR make the unit tests optional.

By default the unit tests are still enabled, so It's backwards compatible.

This fixes this problem when integrating this library using CMake on iOS.
http://stackoverflow.com/questions/37880180/error-creating-ios-static-library-using-cmake

@smarx
Copy link

smarx commented Jul 11, 2016

Automated message from Dropbox CLA bot

@4brunu, it looks like you've already signed the Dropbox CLA. Thanks!

@4brunu
Copy link
Contributor Author

4brunu commented Jul 12, 2016

How to disable the Unit tests

Disable in CMakeLists.txt:
set(JSON11_BUILD_TESTS OFF CACHE BOOL "json11 Build unit tests")

Disable in the Command line:
cmake -DJSON11_BUILD_TESTS:BOOL=OFF ...

@artwyman artwyman merged commit d9867d8 into dropbox:master Jul 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants