mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-08 05:15:13 +08:00
0ab1a9e1c6
* [vcpkg] Add new function vcpkg_copy_tools * [cpuinfo][czmq][nanomsg][uriparser] Use vcpkg_copy_tools * [czmq] Clean even tools are not copied [libsvm][zyre] Use vcpkg_copy_tools * [vcpkg-copy-tools] Clean debug/bin This should fix czmq build error * [czmq] czmq does not have BUILD_TOOLS option * [vcpkg] Split clean logic into another function * [cpuinfo][czmq][nanomsg][uriparser] Fix calling of vcpkg_copy_tools * [zyre] Fix regression error * [vcpkg] Update try_remove_empty_directory * [libsvm] Fix vcpkg_copy_tools call
24 lines
874 B
Markdown
24 lines
874 B
Markdown
# vcpkg_clean_executables_in_bin
|
|
|
|
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
|
|
```cmake
|
|
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
|
|
* [czmq](https://github.com/microsoft/vcpkg/blob/master/ports/czmq/portfile.cmake)
|
|
|
|
## Source
|
|
[scripts/cmake/vcpkg_clean_executables_in_bin.cmake](https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_clean_executables_in_bin.cmake)
|