2018-11-23 06:48:18 +08:00
# vcpkg_extract_source_archive_ex
2021-03-11 01:56:07 +08:00
The latest version of this document lives in the [vcpkg repo ](https://github.com/Microsoft/vcpkg/blob/master/docs/maintainers/vcpkg_extract_source_archive_ex.md ).
2021-03-01 05:17:19 +08:00
2021-07-15 03:45:18 +08:00
Extract an archive into the source directory.
Originally replaced [`vcpkg_extract_source_archive()`],
but new ports should instead use the second overload of
[`vcpkg_extract_source_archive()`].
2018-11-23 06:48:18 +08:00
## Usage
```cmake
vcpkg_extract_source_archive_ex(
2021-07-15 03:45:18 +08:00
[OUT_SOURCE_PATH < source_path > ]
...
2018-11-23 06:48:18 +08:00
)
```
2019-12-23 22:10:12 +08:00
2021-07-15 03:45:18 +08:00
See the documentation for [`vcpkg_extract_source_archive()`] for other parameters.
Additionally, `vcpkg_extract_source_archive_ex()` adds the `REF` and `WORKING_DIRECTORY`
parameters, which are wrappers around `SOURCE_BASE` and `BASE_DIRECTORY`
respectively.
2018-11-23 06:48:18 +08:00
2021-07-15 03:45:18 +08:00
[`vcpkg_extract_source_archive()`]: vcpkg_extract_source_archive.md
2018-11-23 06:48:18 +08:00
## Source
2021-03-01 05:17:19 +08:00
[scripts/cmake/vcpkg\_extract\_source\_archive\_ex.cmake ](https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_extract_source_archive_ex.cmake )