vcpkg/ports/libarchive/usage
Matioupi 838574a4e6
[baseline][libarchive] : regression fix (#14579)
* Fix regression cf. https://github.com/microsoft/vcpkg/issues/14567 introduced with commit 5dc53211ca

* Changes as suggested in https://github.com/microsoft/vcpkg/pull/14579#discussion_r523812601 and following

* Change as suggested in https://github.com/microsoft/vcpkg/pull/14579#discussion_r523809876

* [cmake] Fix dependency zstd

* [cmake] Revert d14f917bd2

* [libarchive] Fix cmake wrapper, add usage

* Manual merge of fa887c48f1

Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
2020-11-16 09:49:38 -08:00

6 lines
246 B
Plaintext

The package libarchive is compatible with built-in CMake targets:
find_package(libarchive REQUIRED)
target_include_directories(main PRIVATE ${LibArchive_INCLUDE_DIRS})
target_link_libraries(main PRIVATE ${LibArchive_LIBRARIES})