Skip to content

Commit 0f5fe35

Browse files
authored
Update FindVendor.cmake
1 parent 53f89f4 commit 0f5fe35

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cmake/FindVendor.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,17 @@ include(FindPackageHandleStandardArgs)
6262
find_package_handle_standard_args(Vendor REQUIRED_VARS Vendor_INCLUDE_DIR Vendor_LIBRARY)
6363

6464
if(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

0 commit comments

Comments
 (0)