aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwangli28 <47812810+wangli28@users.noreply.github.com>2019-07-11 08:03:41 +0800
committerdan-shaw <51385773+dan-shaw@users.noreply.github.com>2019-07-10 17:03:41 -0700
commit83b3ce224b25f5364bfd0e493cd259e957e2afc2 (patch)
treec406c9cd8b84e90aab98f3b8185736cc1ed1dc3c
parent0641cf54ecdaa33c4b6874bab5afe7e9a4049011 (diff)
downloadvcpkg-83b3ce224b25f5364bfd0e493cd259e957e2afc2.tar.gz
vcpkg-83b3ce224b25f5364bfd0e493cd259e957e2afc2.zip
[libkml] Fix install path (#7194)
-rw-r--r--ports/libkml/CONTROL2
-rw-r--r--ports/libkml/portfile.cmake9
2 files changed, 9 insertions, 2 deletions
diff --git a/ports/libkml/CONTROL b/ports/libkml/CONTROL
index 7e54d2c1c..34a3a3440 100644
--- a/ports/libkml/CONTROL
+++ b/ports/libkml/CONTROL
@@ -1,5 +1,5 @@
Source: libkml
-Version: 1.3.0-2
+Version: 1.3.0-3
Homepage: https://github.com/libkml/libkml
Description: Reference implementation of OGC KML 2.2
Build-Depends: zlib, expat, minizip, uriparser, boost-smart-ptr
diff --git a/ports/libkml/portfile.cmake b/ports/libkml/portfile.cmake
index b2e846d3c..3a0af2329 100644
--- a/ports/libkml/portfile.cmake
+++ b/ports/libkml/portfile.cmake
@@ -23,6 +23,13 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()
vcpkg_copy_pdbs()
-vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
+if (VCPKG_TARGET_IS_WINDOWS)
+ vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
+elseif (VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux")
+ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/libkml)
+elseif (VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Darwin")
+ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/libkml)
+endif()
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libkml RENAME copyright)