fix pkg-config file and cmake one
authorGianfranco Costamagna <locutusofborg@debian.org>
Tue, 26 May 2020 15:56:33 +0000 (16:56 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Tue, 26 May 2020 15:56:33 +0000 (16:56 +0100)
Forwarded: not needed, upstream reworked the cmake handling
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/yaml-cpp/+bug/1880419
Last-Update: 2020-05-26

Gbp-Pq: Name fix-pkg-config.patch

CMakeLists.txt
yaml-cpp-config.cmake.in
yaml-cpp.pc.cmake

index cc7b1553d4d3a76f83dc10e8b66661886dae1093..01f86c0cf3e17bf2f30fc1a5ca612eed2ba29006 100644 (file)
@@ -325,7 +325,7 @@ export(
 export(PACKAGE yaml-cpp)
 set(EXPORT_TARGETS yaml-cpp CACHE INTERNAL "export targets")
 
-set(CONFIG_INCLUDE_DIRS "${YAML_CPP_SOURCE_DIR}/include")
+set(CONFIG_INCLUDE_DIRS include)
 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/yaml-cpp-config.cmake.in
        "${PROJECT_BINARY_DIR}/yaml-cpp-config.cmake" @ONLY)
 
index 7b41e3f30cfa85de6b6a63cb29eb96d33fd5083b..988517bf5539da0c246e1ea5a4334804dfb9a3b7 100644 (file)
@@ -5,7 +5,7 @@
 
 # Compute paths
 get_filename_component(YAML_CPP_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
-set(YAML_CPP_INCLUDE_DIR "@CONFIG_INCLUDE_DIRS@")
+set(YAML_CPP_INCLUDE_DIR "@INCLUDE_INSTALL_ROOT_DIR@")
 
 # Our library dependencies (contains definitions for IMPORTED targets)
 include("${YAML_CPP_CMAKE_DIR}/yaml-cpp-targets.cmake")
index 3db7962eaf50734dd153ee6f84f0285eb7fb5d4c..f6b720df68bfa7bcc928aff960fe83182069b840 100644 (file)
@@ -1,7 +1,7 @@
 prefix=@CMAKE_INSTALL_PREFIX@
 exec_prefix=${prefix}
 includedir=${prefix}/@INCLUDE_INSTALL_ROOT_DIR@
-libdir=${exec_prefix}/@LIB_INSTALL_DIR@
+libdir=@LIB_INSTALL_DIR@
 
 Name: Yaml-cpp
 Description: A YAML parser and emitter for C++