json-schema-validator icon indicating copy to clipboard operation
json-schema-validator copied to clipboard

Allow to disable tests / examples

Open Sil3ntStorm opened this issue 4 years ago • 1 comments

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.

Sil3ntStorm avatar Jan 10 '22 12:01 Sil3ntStorm

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.

inkychris avatar Jul 05 '22 21:07 inkychris