aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Li <seanlishuo@gmail.com>2017-06-16 17:16:10 +0800
committerSean Li <seanlishuo@gmail.com>2017-06-16 17:16:10 +0800
commitc626675abb963d15f5d290a56005556d95b160bd (patch)
tree048618ccd1275c43cfd9a9dffcfd3d27fe746c9a
parente8b87926911d99b41620d88f9f61ed540cc488ef (diff)
downloadvcpkg-c626675abb963d15f5d290a56005556d95b160bd.tar.gz
vcpkg-c626675abb963d15f5d290a56005556d95b160bd.zip
Remove dll for static build.
-rw-r--r--ports/flann/portfile.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/flann/portfile.cmake b/ports/flann/portfile.cmake
index cf4e6fc49..46d8d70ab 100644
--- a/ports/flann/portfile.cmake
+++ b/ports/flann/portfile.cmake
@@ -29,6 +29,10 @@ vcpkg_install_cmake()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
+endif()
+
# Handle copyright
file(COPY ${CURRENT_BUILDTREES_DIR}/src/flann-1.9.1/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/flann)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/flann/COPYING ${CURRENT_PACKAGES_DIR}/share/flann/copyright)