Get package version directly from ament

This commit is contained in:
Christophe Bedard 2019-06-17 11:15:57 +02:00
parent e7ed83217e
commit d0425d2c57
3 changed files with 3 additions and 3 deletions

View file

@ -99,3 +99,5 @@ if(BUILD_TESTING)
endif()
ament_package()
add_definitions("-D${PROJECT_NAME}_VERSION=\"${${PROJECT_NAME}_VERSION}\"")

View file

@ -8,8 +8,6 @@
#define TRACEPOINT(event_name, ...) \
(ros_trace_ ## event_name)(__VA_ARGS__)
#define TRACETOOLS_VERSION "0.0.1"
#ifdef __cplusplus
extern "C"
{

View file

@ -25,7 +25,7 @@ void TRACEPOINT(
ros2,
rcl_init,
context_handle,
TRACETOOLS_VERSION);
tracetools_VERSION);
}
void TRACEPOINT(