You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.3 KiB

3 months ago
  1. # - Config file for the yaml-cpp package
  2. # It defines the following variables
  3. # YAML_CPP_INCLUDE_DIR - include directory
  4. # YAML_CPP_LIBRARY_DIR - directory containing libraries
  5. # YAML_CPP_SHARED_LIBS_BUILT - whether we have built shared libraries or not
  6. # YAML_CPP_LIBRARIES - libraries to link against
  7. @PACKAGE_INIT@
  8. set_and_check(YAML_CPP_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@")
  9. set_and_check(YAML_CPP_LIBRARY_DIR "@PACKAGE_CMAKE_INSTALL_LIBDIR@")
  10. # Are we building shared libraries?
  11. set(YAML_CPP_SHARED_LIBS_BUILT @YAML_BUILD_SHARED_LIBS@)
  12. # Our library dependencies (contains definitions for IMPORTED targets)
  13. include("${CMAKE_CURRENT_LIST_DIR}/yaml-cpp-targets.cmake")
  14. # These are IMPORTED targets created by yaml-cpp-targets.cmake
  15. set(YAML_CPP_LIBRARIES "@EXPORT_TARGETS@")
  16. # Protect against multiple inclusion, which would fail when already imported targets are added once more.
  17. if(NOT TARGET yaml-cpp)
  18. add_library(yaml-cpp INTERFACE IMPORTED)
  19. target_link_libraries(yaml-cpp INTERFACE yaml-cpp::yaml-cpp)
  20. if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.17)
  21. set_target_properties(yaml-cpp PROPERTIES
  22. DEPRECATION "The target yaml-cpp is deprecated and will be removed in version 0.10.0. Use the yaml-cpp::yaml-cpp target instead."
  23. )
  24. endif()
  25. endif()
  26. check_required_components(yaml-cpp)