We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b187b0 commit 37114aaCopy full SHA for 37114aa
libuvc_camera/CMakeLists.txt
@@ -7,7 +7,12 @@ find_package(catkin REQUIRED COMPONENTS roscpp camera_info_manager dynamic_recon
7
generate_dynamic_reconfigure_options(cfg/UVCCamera.cfg)
8
9
find_package(libuvc REQUIRED)
10
-message(STATUS "libuvc ${libuvc_VERSION_MAJOR}.${libuvc_VERSION_MINOR}.${libuvc_VERSION_PATCH}")
+# if libuvc_LIBRARIES are empty, assume cmake target
11
+if(NOT libuvc_LIBRARIES AND TARGET LibUVC::UVCShared)
12
+ set(libuvc_LIBRARIES LibUVC::UVCShared)
13
+else()
14
+ message(FATAL_ERROR "libuvc library not found")
15
+endif()
16
17
catkin_package(
18
CATKIN_DEPENDS
0 commit comments