CMake package: support older version syntax

This commit is contained in:
Ihor Dutchak
2020-07-27 15:34:35 +03:00
parent d1bef57f4c
commit 88b253c344
+3 -1
View File
@@ -46,5 +46,7 @@ check_required_components(hidapi)
if(NOT TARGET hidapi::hidapi)
add_library(hidapi::hidapi INTERFACE IMPORTED)
target_link_libraries(hidapi::hidapi INTERFACE hidapi::@EXPORT_ALIAS@)
set_target_properties(hidapi::hidapi PROPERTIES
INTERFACE_LINK_LIBRARIES hidapi::@EXPORT_ALIAS@
)
endif()