mirror of
https://github.com/RPCS3/hidapi.git
synced 2026-07-19 13:34:37 -04:00
CMake package: support older version syntax
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user