Skip to content

remove deprecated ament_target_dependencies()#48

Closed
mosfet80 wants to merge 1 commit intomoveit:ros2from
mosfet80:removeddeprecateamend
Closed

remove deprecated ament_target_dependencies()#48
mosfet80 wants to merge 1 commit intomoveit:ros2from
mosfet80:removeddeprecateamend

Conversation

@mosfet80
Copy link
Contributor

removed unnecessary and deprecated ament_target_dependencies()
fix cmake 3.5 deprecation
set ros2 CXX standard to CXX_17

removed unnecessary  and deprecated  ament_target_dependencies()
fix cmake 3.5 deprecation
set ros2 CXX standard to CXX_17
Comment on lines 4 to 7
# Default to C++14
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD 17)
endif()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be removed completely. C++17 is the default for current compilers.

endif()

find_package(ament_cmake REQUIRED)
find_package(Boost REQUIRED date_time random thread)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still needed!

src/random_numbers.cpp
)

ament_target_dependencies(${PROJECT_NAME} Boost)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here. See #47 for the correct approach.

@mosfet80 mosfet80 closed this May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants