- 28 Jun, 2023 1 commit
-
-
Ryan authored
This matches the name for the ALIAS targets, and fixes #1025.
-
- 23 Mar, 2023 1 commit
-
-
Jesse Beder authored
This reverts commit 74f63c11.
-
- 21 Mar, 2023 1 commit
-
-
Jelin authored
-
- 04 Mar, 2023 1 commit
-
-
Matthijs van der Burgh authored
* Test(CMake) set NAME and COMMAND in add_test * (CMake) add enable_testing() * (CMake) move cmake_dependent_option up, before using them * (CMake) use YAML_CPP_MAIN_PROJECT in cmake_dependent_option * (CMake) log values regarding tests * (CMake) always find CTest, but don't enable tests * (CMAKE)(temp) fix logging * (actions) set YAML_CPP_BUILD_TESTS for tests * (actions) provide YAML_CPP_BUILD_TESTS to ctest * (actions) set -DYAML_CPP_BUILD_TESTS at build * (actions) don't fail false * (actions) build tests in Test step * (actions) run tests verbose * (CMake) remove temp logging * (actions) split building from running tests * (actions) ctest Debug * (actions) ctest Debug * Remove enable_testing
-
- 20 Sep, 2022 5 commits
-
-
Derzsi Dániel authored
This pull request adds two new exported variables to the CMake config: YAML_CPP_LIBRARY_DIR - points to the directory containing the built library files YAML_CPP_SHARED_LIBS_BUILT - boolean value, lets users know whether shared libraries were built or not
-
stephematician authored
Add definitions to static yaml-cpp target (fixes #1116) Also updates CONTRIBUTING instructions for tests
-
Baruch authored
Minimize warnings when not the top-level project Should fix #970 and #764 when trying to add yaml-cpp to other project
-
Timo Gurr authored
-
Skywol authored
-
- 03 Apr, 2022 1 commit
-
-
SpaceIm authored
Changes YAML_CPP_INSTALL from a cmake_dependent_option to an option. Fixes #756, #847, and #1011.
-
- 01 Apr, 2022 3 commits
-
-
xiaozhuai, Weihang Ding authored
The option `YAML_CPP_BUILD_TESTS` currently enables or disables building of tests; but unconditionally the CMake file includes CTest; this PR makes that conditional on the option. Also, there is no option for enabling formatting, but it does check whether it can find the `clang-format` executable; this PR adds an option (default to true) that skips even looking for the executable if disabled.
-
Felix Schwitzer authored
After configuring the file `yaml-cpp-config.cmake.in`, the result ends up with empty variables. (see also the discussion in #774). Rework this file and the call to `configure_package_config_file` according the cmake documentation (https://cmake.org/cmake/help/v3.22/module/CMakePackageConfigHelpers.html?highlight=configure_package_config#command:configure_package_config_file) to overcome this issue and allow a simple `find_package` after install. As there was some discussion about the place where to install the `yaml-cpp-config.cmake` file, e.g. #1055, factor out the install location into an extra variable to make it easier changing this location in the future. Also untabify CMakeLists.txt in some places to align with the other code parts in this file.
-
Michael Martz authored
Fixes issue #1053.
-
- 27 Jan, 2022 1 commit
-
-
Christian Rauch authored
-
- 23 Nov, 2021 1 commit
-
-
Pavel Karelin authored
Partial revert of "Revert "Revert "Hide most of non-public symbols by default (#984)" (#1038)" (#1045)" This reverts commit 0733aeb4.
-
- 10 Oct, 2021 1 commit
-
-
Pino Toscano authored
-
- 28 Sep, 2021 1 commit
-
-
Jesse Beder authored
This reverts commit da1c8d36. and fixes #1036.
-
- 25 Sep, 2021 1 commit
-
-
Pino Toscano authored
* Export YAML::detail::node::m_amount The internal header node/detail/node.h is included by public headers; YAML::detail::node is implemented in the header itself, and thus it gets inlined... except for its static m_amount class member, which is instantiated in the library only. Right now all the symbols of yaml-cpp are exported (nothing is hidden), so the linker will find node::m_amount in the yaml-cpp library. As solution/workaround, explicitly export YAML::detail::node::m_amount. * CMake: use GenerateExportHeader Make use of the GenerateExportHeader CMake module to generate the dll.h header with export macros. While the produced dll.h is different, the result should be the same, i.e. nothing changes for yaml-cpp or its users. * CMake: hide all the symbols by default Hide all the symbols that are not explicitly exported with YAML_CPP_API. This way the ABI will be way smaller, and only actually exposing the public classes/functions.
-
- 10 Jul, 2021 1 commit
-
-
Jesse Beder authored
-
- 08 Jul, 2020 1 commit
-
-
Tom Collins authored
Per https://cmake.org/cmake/help/latest/policy/CMP0091.html, we need to enable policy CMP0091 if we want to make use of MSVC_RUNTIME_LIBRARY and/or CMAKE_MSVC_RUNTIME_LIBRARY. Fixes issue #912.
-
- 24 May, 2020 1 commit
-
-
Hans-Peter Gygax authored
-
- 29 Apr, 2020 2 commits
-
-
deflinhec authored
Library debug postfix might not be suitable for cross platform project, and usually require extra work of link against prebuilt yaml-cpp. Generally, Xcode project output library to these directories: Debug Release Debug-iphoneos Release-iphoneos Debug-iphonesimulator Release-iphonesimulator Another Xcode project usually configured its build setting as follow, and expects library name to be same between Release and Debug LIBRARY_SEARCH_PATHS=$(CONFIGURATION)$(EFFECT_PLATFORM_NAME) OTHER_LDFLAGS= $(inherited) -lyaml-cpp -
Ian Taylor authored
Fix invocation of clang-format in CMakeLists and apply clang-format.
-
- 29 Nov, 2019 1 commit
-
-
Carlos Gomes Martinho authored
Change the namespace from yaml::yaml to yaml-cpp::yaml-cpp.
-
- 31 Oct, 2019 1 commit
-
-
Mike Egger authored
-
- 13 Oct, 2019 1 commit
-
-
Isabella Muerte authored
🐛 Fixes #748 (#770)
-
- 04 Oct, 2019 1 commit
-
-
Fatih YAZICI authored
Add empty list of sources to add_library and add_executable.
-
- 27 Sep, 2019 3 commits
-
-
Andy Maloney authored
-
Isabella Muerte authored
The generator expressions here are actually unnecessary, now that I think about it. This should fix #745
-
Isabella Muerte authored
Remove 2.6-isms Remove 2.8-isms Bump CMake minimum version to 3.4 Disable some options when used as a subdirectory Use `CONFIGURE_DEPENDS` with `file(GLOB)` when possible Backport CMake 3.15's MSVC_RUNTIME_LIBRARY setting. Set all compile options as generator expressions. Set all find-package files to be installed to the correct file. Remove `export(PACKAGE)`, as this has been deprecated. Remove fat binary support Remove manual setting of iPhone settings. These should be set by parent projects. Remove use of ExternalProject for a local use Conditionally remove format target unless clang-format is found
-
- 25 Sep, 2019 1 commit
-
-
Jesse Beder authored
-
- 15 Sep, 2019 1 commit
-
-
Andy Maloney authored
-
- 10 Sep, 2019 3 commits
-
-
Andy Maloney authored
* CMake: Prefix options with "YAML" and hide platform-specific options When including yaml-cpp as a subproject, some option names can conflict with other projects. (1) Make sure the yaml-cpp options are prefixed with YAML (2) Hide platform-specific options when possible to avoid cluttering the cmake option list * Update docs for change from BUILD_SHARED_LIBS to YAML_BUILD_SHARED_LIBS
-
Andy Maloney authored
Setting CMAKE_CXX_STANDARD and CMAKE_CXX_STANDARD_REQUIRED directly is problematic when including yaml-cpp as a subproject. The proper way is to set these per-target.
-
Andy Maloney authored
This sets the other variables: https://cmake.org/cmake/help/latest/command/project.html
-
- 13 Mar, 2019 1 commit
-
-
Ted Lyngmo authored
* Add compilation flags: -Wshadow -Weffc++ -pedantic -pedantic-errors * Delete implicit copy & move constructors & assignment operators in classes with pointer data members. * An exception to the above: Add default copy & move constructors & assignment operators for the Binary class. * Convert boolean RegEx operators to binary operators. * Initialize all members in all classes in ctors. * Let default ctor delegate to the converting ctor in Binary and RegEx * Don't change any tests except regex_test (as a result of the change to binary operators). Note: https://bugzilla.redhat.com/show_bug.cgi?id=1544675 makes -Weffc++ report a false positive in "include/yaml-cpp/node/impl.h".
-
- 27 Feb, 2019 1 commit
-
-
Olli Wang authored
NDK now uses ninja for building but yaml-cpp would emit the “ninja: error: build.ninja:326: bad $-escape (literal $ must be written as $$)” error due to syntax error in the generated build.ninja file. Related issue: https://github.com/jbeder/yaml-cpp/issues/630
-
- 06 Jan, 2019 1 commit
-
-
pent0 authored
-
- 19 Nov, 2018 1 commit
-
-
Joel Frederico authored
Let CMake handle the default optimizations for various configurations. We don't need to override them. In fact, overriding them makes it impossible for users to override them themselves.
-
- 18 Nov, 2018 1 commit
-
-
Lassi Hämäläinen authored
- Option defaults to ON and setting it to OFF, disables install target generation
-