Skip to content

Commit

Permalink
Fix build by moving linker flags after message generation (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
james-ward authored Jun 24, 2024
1 parent ff95acf commit dfbbefb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spatio_temporal_voxel_layer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()

# Get a linker error when there are undefined symbols
add_link_options(-Wl,--no-undefined)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/")

find_package(ament_cmake REQUIRED)
Expand Down Expand Up @@ -82,6 +79,9 @@ rosidl_generate_interfaces(${PROJECT_NAME}
)
rosidl_get_typesupport_target(cpp_typesupport_target "${PROJECT_NAME}" "rosidl_typesupport_cpp")

# Get a linker error when there are undefined symbols
add_link_options(-Wl,--no-undefined)

include_directories(
include
${BOOST_INCLUDE_DIRS}
Expand Down

0 comments on commit dfbbefb

Please sign in to comment.