aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Zhu <john_zhu@acl.com>2019-07-17 21:54:24 -0700
committerPhil Christensen <philc@microsoft.com>2019-07-17 21:54:24 -0700
commitc1b9b66e1a3b40e5587af2e294104609bd26baf2 (patch)
tree98285b251c27c46330694c14012ec48aa9d532b8
parent835d3de78bc28651afe7cfe949163e952674f54c (diff)
downloadvcpkg-c1b9b66e1a3b40e5587af2e294104609bd26baf2.tar.gz
vcpkg-c1b9b66e1a3b40e5587af2e294104609bd26baf2.zip
Make json-spirit pass post-validation (#7310)
-rw-r--r--ports/json-spirit/portfile.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/json-spirit/portfile.cmake b/ports/json-spirit/portfile.cmake
index 3b5e1d316..9d2f24073 100644
--- a/ports/json-spirit/portfile.cmake
+++ b/ports/json-spirit/portfile.cmake
@@ -21,4 +21,7 @@ vcpkg_install_cmake()
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/json-spirit RENAME copyright)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
+endif()
vcpkg_copy_pdbs()