YDLIDAR / YDLidar-SDK

Driver for receiving YD LiDAR data and more...
Other
119 stars 221 forks source link

Adds a LINK_DIRS variable to CMakeLists. #44

Open vik748 opened 5 months ago

vik748 commented 5 months ago

Fixes issue linking against this SDK library when installed locally using the --install-prefix flag. The root cause is that YDLIDAR_SDK_LIBRARY_DIRS is set to empty. LINK_DIRS (PACKAGE_LINK_DIRS) variable is used to set the YDLIDAR_SDK_LIBRARY_DIRS in the resulting ydlidar_sdkConfig.cmake file.

See discussion at https://github.com/colcon/colcon-core/issues/605 for details.