File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,16 +62,17 @@ include(FindPackageHandleStandardArgs)
6262find_package_handle_standard_args (Vendor REQUIRED_VARS Vendor_INCLUDE_DIR Vendor_LIBRARY)
6363
6464if (Vendor_FOUND)
65- # For backwards-compatibility with older style, set Vendor_INCLUDE_DIRS in case some users expect it.
65+ # For backwards-compatibility with older style, set a couple Vendor_ variables in case some users expect it.
6666 set (Vendor_INCLUDE_DIRS ${Vendor_INCLUDE_DIR} )
67+ set (Vendor_LIBRARIES ${Vendor_LIBRARY} )
6768
6869 if (NOT TARGET Vendor::Device)
6970 # Declare the target
7071 add_library (Vendor::Device SHARED IMPORTED )
7172 #Use INTERFACE for header-only libs.
7273 # https://cmake.org/cmake/help/latest/command/add_library.html#id3
7374
74- # Windows needs additional help
75+ # On Windows, the IMPORTED_LIB is the .lib, and the IMPORTED_LOCATION (below) is the .dll
7576 get_filename_component (libext vendorsdk_SDK_LIB EXT )
7677 if (libext STREQUAL ".lib" )
7778 set_target_properties (Vendor::Device PROPERTIES
You can’t perform that action at this time.
0 commit comments