remove use of uninitialized CMake var (#512)

This commit is contained in:
Dirk Thomas 2018-07-11 14:08:09 -07:00 committed by GitHub
parent ae6f8e3e9a
commit 0ad17575a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -247,8 +247,7 @@ if(BUILD_TESTING)
) )
target_link_libraries(test_publisher ${PROJECT_NAME}) target_link_libraries(test_publisher ${PROJECT_NAME})
endif() endif()
ament_add_gtest(test_rate test/test_rate.cpp ament_add_gtest(test_rate test/test_rate.cpp)
ENV RCL_ASSERT_RMW_ID_MATCHES=${rmw_implementation})
if(TARGET test_rate) if(TARGET test_rate)
target_include_directories(test_rate PUBLIC target_include_directories(test_rate PUBLIC
${rcl_interfaces_INCLUDE_DIRS} ${rcl_interfaces_INCLUDE_DIRS}
@ -260,8 +259,7 @@ if(BUILD_TESTING)
${PROJECT_NAME} ${PROJECT_NAME}
) )
endif() endif()
ament_add_gtest(test_serialized_message_allocator test/test_serialized_message_allocator.cpp ament_add_gtest(test_serialized_message_allocator test/test_serialized_message_allocator.cpp)
ENV RCL_ASSERT_RMW_ID_MATCHES=${rmw_implementation})
if(TARGET test_serialized_message_allocator) if(TARGET test_serialized_message_allocator)
target_include_directories(test_serialized_message_allocator PUBLIC target_include_directories(test_serialized_message_allocator PUBLIC
${test_msgs_INCLUDE_DIRS} ${test_msgs_INCLUDE_DIRS}