vcpkg/ports/libcaer/fix-libusb.diff
Kai Pastor 54bf862901
[libcaer,dv-processing] Port fixes, cleanup (#30098)
* [libcaer] Fix libusb dependency, cleanup

* [dv-processing] Fix config race, cleanup

* Add tools feature [skip actions]

* WIP [skip actions]

* WIP [skip actions]

* Finish changes

* Fix comment

* CR requests
2023-03-15 17:17:26 -07:00

18 lines
533 B
Diff

diff --git a/cmakemod/libcaerConfig.cmake.in b/cmakemod/libcaerConfig.cmake.in
index cdf9f88..475d543 100644
--- a/cmakemod/libcaerConfig.cmake.in
+++ b/cmakemod/libcaerConfig.cmake.in
@@ -21,6 +21,12 @@
CMAKE_POLICY(PUSH)
CMAKE_POLICY(VERSION 3.10)
+include(CMakeFindDependencyMacro)
+if(NOT "@CC_MSVC@")
+ find_dependency(PkgConfig)
+ pkg_check_modules(libusb REQUIRED IMPORTED_TARGET libusb-1.0)
+endif()
+
INCLUDE(@PACKAGE_export_destination@/libcaer-exports.cmake)
SET(libcaer_INCLUDE_DIRS @PACKAGE_include_dirs@)