json-schema-validator
json-schema-validator copied to clipboard
Allow to disable tests / examples
It appears that it is impossible to disable building the examples and tests.
There are options for it with JSON_VALIDATOR_BUILD_EXAMPLES and JSON_VALIDATOR_BUILD_TESTS, however they get ignored completely if they are set, as they're overwritten to be enabled in CMakeLists.txt#L48-L59, which effectively makes it so you cannot disable them.
However you want to do it, it should be possible to disable the tests / examples.
This cuts both ways. I have json-schema as a submodule and can't build the tests or examples without modifying this project's CMake config.