[liblas]Fix ${_IMPORT_PREFIX} in liblas-depends-*.cmake. (#7920)

* [liblas]Fix ${_IMPORT_PREFIX} in liblas-depends-debug.cmake/liblas-depends-release.cmake.

* [liblas]Fix depends.cmake.

* [liblas]Use vcpkg_fixup_cmake_targets to handle liblas-depends-*.cmake.
This commit is contained in:
JackBoosY 2019-10-09 02:33:55 +08:00 committed by Victor Romero
parent 7a33372afd
commit 0de501a3f4
2 changed files with 6 additions and 8 deletions

View File

@ -1,5 +1,5 @@
Source: liblas
Version: 1.8.1-2
Version: 1.8.1-3
Build-Depends: boost, boost-thread, boost-system, boost-iostreams, boost-filesystem, libgeotiff
Description: A C/C++ library for reading and writing the very common LAS LiDAR format.

View File

@ -36,15 +36,13 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/doc)
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
endif()
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/share/cmake/liblas/liblas-depends.cmake)
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/share/cmake/libLAS/liblas-depends.cmake)
if(EXISTS ${CURRENT_PACKAGES_DIR}/debug/share/cmake/liblas)
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/liblas)
endif()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/libLAS)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/liblas RENAME copyright)
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)