From c1b9b66e1a3b40e5587af2e294104609bd26baf2 Mon Sep 17 00:00:00 2001 From: John Zhu Date: Wed, 17 Jul 2019 21:54:24 -0700 Subject: [PATCH] Make json-spirit pass post-validation (#7310) --- ports/json-spirit/portfile.cmake | 3 +++ 1 file changed, 3 insertions(+) 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()