From dba828e5904dcf6bec908571ece9ab3ab2c51232 Mon Sep 17 00:00:00 2001 From: "ing. Federico Fuga" Date: Thu, 13 Dec 2018 13:06:27 +0100 Subject: [PATCH] Geos: Removed empty directory after install (when only static lib are built) --- ports/geos/portfile.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ports/geos/portfile.cmake b/ports/geos/portfile.cmake index 2f374e79d3..673b159f85 100644 --- a/ports/geos/portfile.cmake +++ b/ports/geos/portfile.cmake @@ -26,6 +26,10 @@ vcpkg_configure_cmake( ) vcpkg_install_cmake() +if(VCPKG_LIBRARY_LINKAGE STREQUAL static) + file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin) +endif() + file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) if(EXISTS ${CURRENT_PACKAGES_DIR}/bin/geos-config)