From 6d0d3b1d2c4ac7e798c029a25ca870b03e1877fe Mon Sep 17 00:00:00 2001 From: Gabor Cseh Date: Tue, 10 Apr 2018 19:49:55 +0200 Subject: At static build now the bin directories are removed. (#3240) --- ports/plplot/portfile.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ports/plplot/portfile.cmake b/ports/plplot/portfile.cmake index 372a59bba..7b35f0a15 100644 --- a/ports/plplot/portfile.cmake +++ b/ports/plplot/portfile.cmake @@ -53,6 +53,14 @@ file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/pltek.exe ) +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + message(STATUS "Static build: Removing the full bin directory.") + file(REMOVE_RECURSE + ${CURRENT_PACKAGES_DIR}/debug/bin + ${CURRENT_PACKAGES_DIR}/bin + ) +endif() + # Remove unwanted and duplicate directories file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include -- cgit v1.2.3