Kai Pastor edd3db2e3b
[libffi] Use upstream's build system (#33203)
* [libffi] Use upstream's build system

* WIP [skip actions]

* WIP [skip actions]

* WIP [skip actions]

* Finish libffi

* Fix downstream lookup

* Update versions

* [gobject-introspection] Require libffi

* Move DLLs to bin

* [libffi] Usage

* Restore azp

* Fix typo

* CI
2023-08-24 12:51:20 -07:00

11 lines
367 B
Plaintext

libffi can be imported via CMake FindPkgConfig module:
find_package(PkgConfig)
pkg_check_modules(LIBFFI REQUIRED IMPORTED_TARGET libffi)
target_link_libraries(main PRIVATE PkgConfig::LIBFFI)
vcpkg provides proprietary CMake targets:
find_package(unofficial-libffi CONFIG REQUIRED)
target_link_libraries(main PRIVATE unofficial::libffi::libffi)