Fix empty YAML_CPP_LIBRARIES
authorJochen Sprickerhof <jspricke@debian.org>
Sat, 13 Nov 2021 20:48:59 +0000 (20:48 +0000)
committerGianfranco Costamagna <locutusofborg@debian.org>
Sat, 13 Nov 2021 20:48:59 +0000 (20:48 +0000)
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

The new version does not set EXPORT_TARGETS. As the value should be yaml-cpp
anyhow, just set it directly.

Gbp-Pq: Name cmake_set_libraries.patch

yaml-cpp-config.cmake.in

index 988517bf5539da0c246e1ea5a4334804dfb9a3b7..4bcc63d2b6efc0a5875d2ef5807ab853c4f3ee80 100644 (file)
@@ -11,4 +11,4 @@ set(YAML_CPP_INCLUDE_DIR "@INCLUDE_INSTALL_ROOT_DIR@")
 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")