Skip to content

Commit

Permalink
Merge pull request #116 from ros-drivers/humble-devel-fix-lsb-release
Browse files Browse the repository at this point in the history
use cmake find_program to detect lsb_release
  • Loading branch information
berndpfrommer authored Jul 25, 2023
2 parents ec775b8 + c0aab0f commit 6849c1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spinnaker_camera_driver/cmake/DownloadSpinnaker.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ function(download_spinnaker FLIR_LIB_VAR FLIR_INCLUDE_DIR_VAR)
message(FATAL_ERROR "Downloading libSpinnaker for non-linux systems not supported")
endif()

find_program(LSB_RELEASE_EXEC lsb_release REQUIRED)
execute_process(
COMMAND lsb_release -cs
COMMAND ${LSB_RELEASE_EXEC} -cs
OUTPUT_VARIABLE OS_CODE_NAME
OUTPUT_STRIP_TRAILING_WHITESPACE)

Expand Down

0 comments on commit 6849c1c

Please sign in to comment.