From c4b74cf5a0dcaefa658380ed5fd0df81a164a871 Mon Sep 17 00:00:00 2001 From: vik748 Date: Thu, 25 Jan 2024 09:17:35 -0800 Subject: [PATCH 1/2] Adds a LINK_DIRS variable to CMakeLists. 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. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2a6a852..42df3e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -174,6 +174,7 @@ install_package( DESTINATION ${CMAKE_INSTALL_PREFIX}/include INCLUDE_DIRS ${SDK_INCS} LINK_LIBS ${SDK_LIBS} + LINK_DIRS ${CMAKE_INSTALL_PREFIX}/lib ) ######################################################################################### # install doc From 2ad6ee5b5b0c9b7b63992407a829babd11a33573 Mon Sep 17 00:00:00 2001 From: vik748 Date: Tue, 30 Jan 2024 10:22:44 -0800 Subject: [PATCH 2/2] Update YDLidar-SDK to .gitignore build and pycache --- .gitignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 55f001a..8c68d3a 100644 --- a/.gitignore +++ b/.gitignore @@ -172,3 +172,7 @@ YDLidar-SDK.files .gitignore YDLidar-SDK.includes build/Testing/Temporary/LastTest.log + +# Dapster changes +build/ +**/__pycache__/