Control: forwarded -1 https://github.com/jbeder/yaml-cpp/issues/774
Control: tag -1 + patch

* Sebastian Ramacher <sramac...@debian.org> [2021-11-13 01:18]:
Based on what I can tell from 0.6.3-10,
/usr/lib/*/cmake/yaml-cpp/yaml-cpp-config.cmake should have
YAML_CPP_LIBRARIES set to yaml-cpp. With the current version this is no
longer the case. I think this issue causes at least ros-rviz and
dcm2niix fail to build

Seems like there is an upstream bug for it for some time.
I've attached a simple patch to fix this.
See also my comment in the upstream PR:

https://github.com/jbeder/yaml-cpp/pull/1037/files#r748763058

Cheers Jochen
Description: Fix empty YAML_CPP_LIBRARIES
 The new version does not set EXPORT_TARGETS. As the value should be yaml-cpp
 anyhow, just set it directly.
Author: Jochen Sprickerhof <jspri...@debian.org>
Bug: https://github.com/jbeder/yaml-cpp/issues/774
Bug-Debian: https://bugs.debian.org/999594
Forwarded: https://github.com/jbeder/yaml-cpp/pull/1037
Last-Update: 2021-11-13

--- yaml-cpp-0.7.0+dfsg.orig/yaml-cpp-config.cmake.in
+++ yaml-cpp-0.7.0+dfsg/yaml-cpp-config.cmake.in
@@ -11,4 +11,4 @@ set(YAML_CPP_INCLUDE_DIR "@INCLUDE_INSTA
 include("${YAML_CPP_CMAKE_DIR}/yaml-cpp-targets.cmake")
 
 # These are IMPORTED targets created by yaml-cpp-targets.cmake
-set(YAML_CPP_LIBRARIES "@EXPORT_TARGETS@")
+set(YAML_CPP_LIBRARIES "yaml-cpp")

Attachment: signature.asc
Description: PGP signature

Reply via email to