Jack·Boos·Yu ba64748ecd
[libarchive] Fix usage (#21426)
* [libarchive] Fix usage

* version
2021-11-16 16:42:13 -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})