From d887fa4a301aa9bdf87d746ee4d1bed57d827bb8 Mon Sep 17 00:00:00 2001 From: jasjuang Date: Mon, 10 Jul 2017 07:58:52 -0700 Subject: [PATCH] use glob to remove exe --- ports/alembic/portfile.cmake | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/ports/alembic/portfile.cmake b/ports/alembic/portfile.cmake index ae056bcddf..26fa79e9ce 100644 --- a/ports/alembic/portfile.cmake +++ b/ports/alembic/portfile.cmake @@ -20,18 +20,10 @@ vcpkg_copy_pdbs() file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) -file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/abcdiff.exe) -file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/abcecho.exe) -file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/abcechobounds.exe) -file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/abcls.exe) -file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/abcstitcher.exe) -file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/abctree.exe) -file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/abcdiff.exe) -file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/abcecho.exe) -file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/abcechobounds.exe) -file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/abcls.exe) -file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/abcstitcher.exe) -file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/abctree.exe) +file(GLOB EXE ${CURRENT_PACKAGES_DIR}/bin/*.exe) +file(GLOB DEBUG_EXE ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe) +file(REMOVE ${EXE}) +file(REMOVE ${DEBUG_EXE}) file(RENAME ${CURRENT_PACKAGES_DIR}/lib/Alembic.dll ${CURRENT_PACKAGES_DIR}/bin/Alembic.dll) file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/Alembic.dll ${CURRENT_PACKAGES_DIR}/debug/bin/Alembic.dll)