Skip to content

Add option JSONCPP_WITH_EXAMPLE #1099

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

Merged
merged 2 commits into from
Dec 23, 2019

Conversation

theirix
Copy link
Contributor

@theirix theirix commented Nov 14, 2019

Allows to conditionally build examples as it has been done for tests.
Useful for packaging.

Allows to conditionally build examples as
it has been done for tests.  Useful for packaging.
@coveralls
Copy link

coveralls commented Nov 14, 2019

Coverage Status

Coverage remained the same at 90.672% when pulling a0733bd on theirix:cmake-option-for-example into 781eec4 on open-source-parsers:master.

CMakeLists.txt Outdated
@@ -82,6 +82,7 @@ option(JSONCPP_WITH_WARNING_AS_ERROR "Force compilation to fail if a warning occ
option(JSONCPP_WITH_STRICT_ISO "Issue all the warnings demanded by strict ISO C and ISO C++" ON)
option(JSONCPP_WITH_PKGCONFIG_SUPPORT "Generate and install .pc files" ON)
option(JSONCPP_WITH_CMAKE_PACKAGE "Generate and install cmake package files" ON)
option(JSONCPP_WITH_EXAMPLE "Compile JsonCpp example" ON)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This means default on, right? Do we actually want to always build the example? I would vote for "opt in" not "opt out."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Me too, we can check to OFF by default. I have based a PR on existing behaviour (to build an example).

@dota17 dota17 merged commit 7e5485a into open-source-parsers:master Dec 23, 2019
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.

4 participants