Skip to content

Commit

Permalink
Fix catkin_package() in CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
4c3y committed Aug 21, 2024
1 parent 8013985 commit 9ee987c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mav_sensors_drivers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ find_package(catkin REQUIRED COMPONENTS
mav_sensors_core
)

catkin_package(
INCLUDE_DIRS include lib/BMP3-Sensor-API lib/BMI08x-Sensor-API
LIBRARIES ${PROJECT_NAME} ${PROJECT_NAME}_BMP3 ${PROJECT_NAME}_BMI08x
CATKIN_DEPENDS roscpp lpp mav_sensors_core
)

add_compile_definitions(MODE_LPP)

###########
Expand All @@ -39,6 +33,12 @@ else()
message(WARNING "BMI08x-Sensor-API not found. BMI08x sensor will not be supported.")
endif()

catkin_package(
INCLUDE_DIRS include ${MAV_SENSORS_OPTIONAL_INCLUDE_DIRS}
LIBRARIES ${PROJECT_NAME} ${PROJECT_NAME}_BMP3 ${PROJECT_NAME}_BMI08x
CATKIN_DEPENDS roscpp lpp mav_sensors_core
)

include_directories(
include
${MAV_SENSORS_OPTIONAL_INCLUDE_DIRS}
Expand Down

0 comments on commit 9ee987c

Please sign in to comment.