[gdcm2] Remove empty folders in static build

This commit is contained in:
Alexander Karatarakis 2017-03-21 17:07:14 -07:00
parent 3015169cae
commit d263e008a4

View File

@ -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)