mirror of
https://github.com/tristanpenman/valijson.git
synced 2025-03-02 20:30:11 +01:00

This patch adds support for a new Cmake option, VALIJSON_USE_EXCEPTIONS. If specified and set to `0`, Valijson will disable all exception throwing, add the `-fno-exceptions` compiler flag, and print to std::err and abort where exceptions would have been thrown. NOTE: to set the value of a CMake option, the easiest way is to modify the appropriate source line in the <build folder>/CMakeCache.txt file. Bug: #106