replace deprecated <CONFIGURATION> with <CONFIG>

This commit is contained in:
Dirk Thomas 2016-12-20 11:38:30 -08:00
parent 638f976783
commit d681d29219

View file

@ -29,9 +29,9 @@ macro(rcl_add_custom_launch_test test_name executable1 executable2)
@ONLY
)
file(GENERATE
OUTPUT "test/${test_name}${target_suffix}_$<CONFIGURATION>.py"
OUTPUT "test/${test_name}${target_suffix}_$<CONFIG>.py"
INPUT "${CMAKE_CURRENT_BINARY_DIR}/${test_name}${target_suffix}.py.configure"
)
ament_add_nose_test(${test_name}${target_suffix} "${CMAKE_CURRENT_BINARY_DIR}/${test_name}${target_suffix}_$<CONFIGURATION>.py" ${ARGN})
ament_add_nose_test(${test_name}${target_suffix} "${CMAKE_CURRENT_BINARY_DIR}/${test_name}${target_suffix}_$<CONFIG>.py" ${ARGN})
set_tests_properties(${test_name}${target_suffix} PROPERTIES DEPENDS "${executable1}${target_suffix} ${executable2}${target_suffix}")
endmacro()