From d263e008a49e1a577739944d53f3cd1163a5f3eb Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Tue, 21 Mar 2017 17:07:14 -0700 Subject: [PATCH] [gdcm2] Remove empty folders in static build --- ports/gdcm2/portfile.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ports/gdcm2/portfile.cmake b/ports/gdcm2/portfile.cmake index 74289d394a..dfe48c69fe 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)