summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Changes for v0.2.5 release0.2.5release/0.2.5Tina Müller2020-06-011-1/+1
|
* Changes for v0.2.4 release0.2.4release/0.2.4Tina Müller2020-04-191-1/+1
|
* Changes for v0.2.3 release0.2.3release/0.2.3Tina Müller2020-04-111-1/+1
|
* Change cmake target name from libOFF.a to libyaml.a (#157)Liao Tonglang2020-03-281-1/+1
| | | option can only be ON or OFF. Use set() instead of option() to set default name of target.
* Changes for v0.2.2 releaseTina Müller2019-03-121-2/+2
|
* allow override of Windows static lib nameMatt Davis2019-03-011-2/+3
| | | * also changed name back to original default of yaml, as the change in #10 to `yaml_static` broke things that relied on that
* build: do not install config.hMarty E. Plummer2018-07-191-1/+0
| | | | | | | | | | | | | | | | | | | | 'config.h' is meant to be a convenience header to be #included at build time, but not installed. Installing it can cause a host of problems for various other projects (for instance, attempting to build u-boot from source while another project's 'config.h' exists in the compiler search path will cause build failures similar to: https://github.com/pepe2k/u-boot_mod/issues/148 Further, I've changed '#include <config.h>' to '#include "config.h"', which should constrain the search path to the current build directories, so if another package with a bugged build has this file installed, it will not cause yaml to miscompile/fail. If you have a file `/usr/include/config.h` on your filesystem, query your package manager to find out what package owns it, and file a bug report against it with your distro maintainers. Signed-off-by: Marty E. Plummer <hanetzer@protonmail.com>
* Improve CMake build systemJean-Christophe Fillion-Robin2017-11-301-15/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New build options ----------------- * Add option BUILD_TESTING by default ON See https://cmake.org/cmake/help/v2.8.12/cmake.html#module:CTest * Simplify library type selection using standard option BUILD_SHARED_LIBS See https://cmake.org/cmake/help/v3.0/variable/BUILD_SHARED_LIBS.html yamlConfig.cmake ---------------- * Generate and install yamlConfig.cmake, yamlConfigVersion.cmake and yamlTargets.cmake * Bump CMake version and explicitly associate include dirs with targets See https://cmake.org/cmake/help/v3.0/manual/cmake-buildsystem.7.html#include-directories-and-usage-requirements * Ensure building against libyaml using "find_package(yaml)" uses expected compile options: Set HAVE_CONFIG_H as private compile option, YAML_DECLARE_STATIC as public Testing ------- * Build all examples from "tests" directory CMake Best practices -------------------- * configure "config.h" based on version info found in CMakeLists.txt * Ensure buildsystem re-generation listing sources (best-practice) It is not recommended to use GLOB to collect a list of source files from the source tree. If no CMakeLists.txt file changes when a source is added or removed then the generated build system cannot know when to ask CMake to regenerate. See https://cmake.org/cmake/help/v3.8/command/file.html Compilation warnings -------------------- * Set _CRT_SECURE_NO_WARNINGS if building using VisualStudio This will avoid warnings like this one: ``` C:\projects\libyaml\tests\run-emitter.c(268): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. ``` Continuous Integration ---------------------- * travis: Install CMake >= 3.x using scikit-ci-addons * Add comments to appveyor.yml and run-tests.sh
* cmake: Provide support for building dynamic and static libraries.John Kirkham2017-02-221-2/+5
|
* add unit tests to cmake and appveyor configMiguel Grinberg2016-12-051-0/+9
|
* Fixed segfault in yaml_string_write_handler.Kirill Simonov2016-06-051-1/+1
|
* Fixed heap overflow in yaml_parser_scan_uri_escapes (Thanks Ivan Fratric of ↵0.1.6Kirill Simonov2014-03-261-1/+1
| | | | the Google Security Team).
* Added a basic CMake project.Kirill Simonov2014-01-121-0/+16