aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-03-21 17:07:14 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-03-21 17:07:14 -0700
commitd263e008a49e1a577739944d53f3cd1163a5f3eb (patch)
tree9e232c75d698fced4d8a8ff474415507e51da6c2
parent3015169cae24b22496c230499e0f06e07ac765ed (diff)
downloadvcpkg-d263e008a49e1a577739944d53f3cd1163a5f3eb.tar.gz
vcpkg-d263e008a49e1a577739944d53f3cd1163a5f3eb.zip
[gdcm2] Remove empty folders in static build
-rw-r--r--ports/gdcm2/portfile.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/ports/gdcm2/portfile.cmake b/ports/gdcm2/portfile.cmake
index 74289d394..dfe48c69f 100644
--- a/ports/gdcm2/portfile.cmake
+++ b/ports/gdcm2/portfile.cmake
@@ -28,11 +28,15 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()
-file(REMOVE_RECURSE
+file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/debug/include
${CURRENT_PACKAGES_DIR}/debug/share
)
+if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
+endif()
+
# Handle copyright
file(INSTALL ${SOURCE_PATH}/Copyright.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/gdcm2 RENAME copyright)