dropbox / json11

A tiny JSON library for C++11.
MIT License
2.55k stars 613 forks source link

Add option to disable unit tests #66

Closed 4brunu closed 8 years ago

4brunu commented 8 years ago

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 commented 8 years ago

Automated message from Dropbox CLA bot

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

4brunu commented 8 years ago

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 ...