aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-11-02 13:22:10 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2016-11-02 13:22:10 -0700
commit9246a0aa7afe04d119dbcf340c4e5158a61c5733 (patch)
tree17617deee1902e8e86e4cc89e5506f22c9bbb607
parent53cfd70b1e23964bbdf2bee66f8a6ace7e3fee6d (diff)
downloadvcpkg-9246a0aa7afe04d119dbcf340c4e5158a61c5733.tar.gz
vcpkg-9246a0aa7afe04d119dbcf340c4e5158a61c5733.zip
[libraw] Remove bin folders in static build
-rw-r--r--ports/libraw/portfile.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/libraw/portfile.cmake b/ports/libraw/portfile.cmake
index 4d5621285..284b440e6 100644
--- a/ports/libraw/portfile.cmake
+++ b/ports/libraw/portfile.cmake
@@ -37,6 +37,9 @@ file(GLOB RELEASE_EXECUTABLES ${CURRENT_PACKAGES_DIR}/bin/*.exe)
file(REMOVE ${RELEASE_EXECUTABLES})
file(GLOB DEBUG_EXECUTABLES ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe)
file(REMOVE ${DEBUG_EXECUTABLES})
+if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
+endif()
# Handle copyright
file(COPY ${SOURCE_PATH}/COPYRIGHT DESTINATION ${CURRENT_PACKAGES_DIR}/share/libraw)