Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ros2/libyaml_vendor
CMake wrapper downloading and building libyaml
https://github.com/ros2/libyaml_vendor
Last synced: 1 day ago
JSON representation
CMake wrapper downloading and building libyaml
- Host: GitHub
- URL: https://github.com/ros2/libyaml_vendor
- Owner: ros2
- License: apache-2.0
- Created: 2018-05-10T23:55:58.000Z (over 6 years ago)
- Default Branch: rolling
- Last Pushed: 2024-04-26T16:07:16.000Z (7 months ago)
- Last Synced: 2024-04-26T17:29:08.104Z (7 months ago)
- Language: C++
- Size: 83 KB
- Stars: 1
- Watchers: 19
- Forks: 17
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.rst
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# libyaml_vendor
CMake wrapper to provide libyaml.The CMake script in this package checks if a `libyaml` that has exactly the version required by ROS 2 is available in the system.
If such `libyaml` is available in the system, it only installs a [`Findyaml.cmake`](cmake/Modules/Findyaml.cmake) CMake find module,
to ensure that the library can be always found via:
~~~cmake
find_package(yaml REQUIRED)
~~~
and linked via:
~~~cmake
target_link_libraries( PRIVATE yaml)
~~~
even if no CMake config file for `yaml` is installed in the system.If a `libyaml` that has exactly the version required by ROS 2 is not available in the system, then it downloads and installs
`libyaml` as part of this package thanks to [CMake's ExternalProject module](https://cmake.org/cmake/help/latest/module/ExternalProject.html).The `FORCE_BUILD_VENDOR_PKG` CMake option (that by default is `OFF`) is provided to allow forcing a `libyaml` build, regardless
of what can be found in the system.## Quality Declaration files
Quality declaration for this package: [libyaml_vendor QD](QUALITY_DECLARATION.md).
Quality declaration of external dependency [libyaml](./libyaml_q_declaration.md).