mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 18:37:49 +08:00
54bf862901
* [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
18 lines
533 B
Diff
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@)
|
|
|