Skip to content

Commit

Permalink
Cleanup cmakelists after addition of icub-main dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicogene committed Nov 7, 2024
1 parent 68a9c3a commit 9f46efd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ find_package(Threads REQUIRED)
#### Optional Dependencies
find_package(YARP ${YARP_REQUIRED_VERSION} COMPONENTS conf os dev QUIET)
set(YARP_FORCE_DYNAMIC_PLUGINS TRUE CACHE INTERNAL "${PROJECT_NAME} is always built with dynamic plugins")
find_package(iCubDev 2.7.0 QUIET)

option(ROBOMETRY_USES_SYSTEM_nlohmann_json OFF)
# 3.9.2 is unreleased, this option is not working until that version is not released
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# BSD-3-Clause license. See the accompanying LICENSE file for details.

add_subdirectory(librobometry)
if(YARP_os_FOUND AND YARP_dev_FOUND)
if(YARP_os_FOUND AND YARP_dev_FOUND AND iCubDev_FOUND)
add_subdirectory(telemetryDeviceDumper)
endif()
if(BUILD_EXAMPLES)
Expand Down
1 change: 0 additions & 1 deletion src/telemetryDeviceDumper/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ if(ENABLE_telemetryDeviceDumper)
add_definitions(-D_USE_MATH_DEFINES)
endif()

find_package(iCubDev 2.7.0 REQUIRED)
target_sources(yarp_telemetryDeviceDumper PRIVATE TelemetryDeviceDumper.cpp
TelemetryDeviceDumper.h)

Expand Down

0 comments on commit 9f46efd

Please sign in to comment.