25 lines
878 B
Text
25 lines
878 B
Text
- Fix CMake export files (#1077)
|
|
4aad2b1666a4742743b04e765a34742512915674
|
|
|
|
Index: yaml-cpp-config.cmake.in
|
|
--- yaml-cpp-config.cmake.in.orig
|
|
+++ yaml-cpp-config.cmake.in
|
|
@@ -3,12 +3,14 @@
|
|
# YAML_CPP_INCLUDE_DIR - include directory
|
|
# YAML_CPP_LIBRARIES - libraries to link against
|
|
|
|
-# Compute paths
|
|
-get_filename_component(YAML_CPP_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
-set(YAML_CPP_INCLUDE_DIR "@CONFIG_INCLUDE_DIRS@")
|
|
+@PACKAGE_INIT@
|
|
|
|
+set_and_check(YAML_CPP_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@")
|
|
+
|
|
# Our library dependencies (contains definitions for IMPORTED targets)
|
|
-include("${YAML_CPP_CMAKE_DIR}/yaml-cpp-targets.cmake")
|
|
+include(@PACKAGE_CONFIG_EXPORT_DIR@/yaml-cpp-targets.cmake)
|
|
|
|
# These are IMPORTED targets created by yaml-cpp-targets.cmake
|
|
set(YAML_CPP_LIBRARIES "@EXPORT_TARGETS@")
|
|
+
|
|
+check_required_components(@EXPORT_TARGETS@)
|