1. 22 Oct, 2023 1 commit
  2. 12 Oct, 2023 1 commit
    • Pierre Wendling's avatar
      CMake: Fixes for generated config (#1212) · c26e0472
      Pierre Wendling authored
      
      
      * CMake: Add option to set the package install dir.
      
      * CMake: Fix generated config.
      
      - `YAML_CPP_SHARED_LIBS_BUILT` should not be set with a `PATH_VAR` as it
      would always evaluate to true.
      - `YAML_CPP_LIBRARIES` should used the exported target name including
      the namespace, but `check_required_components` shouldn't.
      - Use `CMAKE_CURRENT_LIST_DIR` to find the target file, instead of a
      `PATH_VAR`. Package managers such as vcpkg move CMake configs after
      installing.
      
      * CI: Test the generated CMake package.
      
      * CMake: Create add a deprecated yaml-cpp target.
      
      This target is meant to provide compatibility with versions prior to
      0.8.0.
      
      * CMake: mark the yaml-cpp target as IMPORTED.
      
      ---------
      Co-authored-by: default avatarJesse Beder <jbeder+github@gmail.com>
      c26e0472
  3. 11 Oct, 2023 2 commits
  4. 16 Aug, 2023 1 commit
  5. 10 Aug, 2023 1 commit
  6. 28 Jun, 2023 1 commit
  7. 23 Mar, 2023 1 commit
  8. 21 Mar, 2023 1 commit
  9. 04 Mar, 2023 1 commit
    • Matthijs van der Burgh's avatar
      Make sure tests are run in CI (#1170) · 3ff7ab07
      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
      3ff7ab07
  10. 20 Sep, 2022 5 commits
  11. 03 Apr, 2022 1 commit
  12. 01 Apr, 2022 3 commits
  13. 27 Jan, 2022 1 commit
  14. 23 Nov, 2021 1 commit
  15. 10 Oct, 2021 1 commit
  16. 28 Sep, 2021 1 commit
  17. 25 Sep, 2021 1 commit
    • Pino Toscano's avatar
      Hide most of non-public symbols by default (#984) · da1c8d36
      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.
      da1c8d36
  18. 10 Jul, 2021 1 commit
  19. 08 Jul, 2020 1 commit
  20. 24 May, 2020 1 commit
  21. 29 Apr, 2020 2 commits
    • deflinhec's avatar
      Make debug postfix optional (#856) · 513ee81f
      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
      513ee81f
    • Ian Taylor's avatar
      Fix clang format (#854) · 9f2781b5
      Ian Taylor authored
      Fix invocation of clang-format in CMakeLists and apply clang-format.
      9f2781b5
  22. 29 Nov, 2019 1 commit
  23. 31 Oct, 2019 1 commit
  24. 13 Oct, 2019 1 commit
  25. 04 Oct, 2019 1 commit
  26. 27 Sep, 2019 3 commits
    • Andy Maloney's avatar
    • Isabella Muerte's avatar
      Fix `DEBUG_POSTFIX` property (#746) · 9d7e556e
      Isabella Muerte authored
      The generator expressions here are actually unnecessary, now that I think about it.
      
      This should fix #745
      9d7e556e
    • Isabella Muerte's avatar
      Refactor CMake to use more modern paradigms (#741) · 5e9cb012
      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
      5e9cb012
  27. 25 Sep, 2019 1 commit
  28. 15 Sep, 2019 1 commit
  29. 10 Sep, 2019 2 commits