Merge branch 'switch-to-target-compile-definitions' into 'master'

Use target_compile_definitions instead of add_definitions for version

See merge request micro-ROS/ros_tracing/ros2_tracing!150
This commit is contained in:
Christophe Bedard 2020-03-03 23:30:11 +00:00
commit 9418d92723

View file

@ -134,4 +134,4 @@ endif()
ament_package()
add_definitions("-D${PROJECT_NAME}_VERSION=\"${${PROJECT_NAME}_VERSION}\"")
target_compile_definitions(${PROJECT_NAME} PRIVATE ${PROJECT_NAME}_VERSION="${${PROJECT_NAME}_VERSION}")