vcpkg/docs/maintainers/vcpkg_clean_executables_in_bin.md
Jack·Boos·Yu 2b20b27b0d
[docs] Fix the automatically generated document URL (#16611)
* [document] Fix the automatically generated document URL

* [docs] Format all documents
2021-03-10 11:56:07 -06:00

1.0 KiB

vcpkg_clean_executables_in_bin

The latest version of this document lives in the vcpkg repo.

Remove specified executables found in ${CURRENT_PACKAGES_DIR}/bin and ${CURRENT_PACKAGES_DIR}/debug/bin. If, after all specified executables have been removed, and the bin and debug/bin directories are empty, then also delete bin and debug/bin directories.

Usage

vcpkg_clean_executables_in_bin(
    FILE_NAMES <file1>...
)

Parameters

FILE_NAMES

A list of executable filenames without extension.

Notes

Generally, there is no need to call this function manually. Instead, pass an extra AUTO_CLEAN argument when calling vcpkg_copy_tools.

Examples

Source

scripts/cmake/vcpkg_clean_executables_in_bin.cmake