aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi Miura <miurahr@linux.com>2018-02-05 12:59:12 +0900
committerHiroshi Miura <miurahr@linux.com>2018-02-05 12:59:12 +0900
commit59614b1ca42a7c3dd302b085ce2a5ee5c14a81ce (patch)
tree0e52647553c6af63d7279eca0b3cf6a92c38827f
parent1721d868562f8384c764404b86235508f8a498df (diff)
downloadvcpkg-59614b1ca42a7c3dd302b085ce2a5ee5c14a81ce.tar.gz
vcpkg-59614b1ca42a7c3dd302b085ce2a5ee5c14a81ce.zip
[libgta] remove dlls when static build
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
-rw-r--r--ports/libgta/portfile.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/libgta/portfile.cmake b/ports/libgta/portfile.cmake
index 5cc3f3e98..abfa89201 100644
--- a/ports/libgta/portfile.cmake
+++ b/ports/libgta/portfile.cmake
@@ -28,6 +28,9 @@ vcpkg_install_cmake()
vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin$ {CURRENT_PACKAGES_DIR}/bin)
+endif()
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libgta)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/libgta/COPYING ${CURRENT_PACKAGES_DIR}/share/libgta/copyright)