aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/plplot/portfile.cmake8
1 files changed, 8 insertions, 0 deletions
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