You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, the JSON pointer in json_file is now destroyed before loading. This is to prevent a memory leak if the type is used later to load another file. Also added a new option destroy_pointer to the json_file load routines, which can be set to False to get the old behavior (not to destroy it).
Added add a new nullify_pointer option to the json_file constructor (default is True)
Updates for the CI and unit tests. Now testing with FPM, and running all tests with valgrind to check for memory leaks.
Added an optional allow_trailing_comma argument to the initialize routines (default is True). If set to False, this disallows extra trailing commas in arrays and objects.
Fixed a CMake bug where the package version was not set correctly, which caused the CMake configuration files to be saved to a folder with a blank version name.🐞
Fixed a bug when setting JSONFORTRAN_STATIC_LIBRARY_ONLY to False. 🐞
Also restored some of the original CMake settings from 8.4.0. Specifically, the tests are enabled by default, and both the shared and static libraries are built by default.
Fixed a bug when IEEE floating-point rounding mode was set to IEEE_DOWN 🐞
Various CMake updates:
Only installing if json-fortran is the top level project. Added a library alias so that json fortran can be included with find_package, fetch_content, and add_subdirectory easily.
Fixed compilation with Ninja and Intel OneAPI ifx compiler, and added some CMake options
Note that the CMake minimum version is now 3.18.
Also note that running the tests requires the CMake variable ENABLE_TESTS to be set to true.