[libyaml] Fix CMake package and CMake targets (#8177)

This commit is contained in:
Silvio Traversaro 2019-09-16 21:58:05 +02:00 committed by Phil Christensen
parent 9b4b5f4ce7
commit 0053942ee5
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,3 @@
Source: libyaml
Version: 0.2.2-1
Version: 0.2.2-2
Description: A C library for parsing and emitting YAML.

View File

@ -15,12 +15,14 @@ vcpkg_configure_cmake(
PREFER_NINJA
OPTIONS
-DBUILD_TESTING=OFF
-DINSTALL_CMAKE_DIR=share/yaml
)
vcpkg_install_cmake()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/include/config.h)
vcpkg_fixup_cmake_targets(CONFIG_PATH share/yaml TARGET_PATH share/yaml)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/include/config.h ${CURRENT_PACKAGES_DIR}/debug/share)
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/libyaml/copyright COPYONLY)