Skip to content

Commit

Permalink
replace deprecated <CONFIGURATION> with <CONFIG>
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Dec 20, 2016
1 parent 2b5722a commit f0e8517
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions composition/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -187,18 +187,18 @@ if(BUILD_TESTING)
@ONLY
)
file(GENERATE
OUTPUT test_composition${target_suffix}_$<CONFIGURATION>.py
OUTPUT test_composition${target_suffix}_$<CONFIG>.py
INPUT test_composition${target_suffix}.py.genexp)
ament_add_nose_test(test_composition${target_suffix}
"${CMAKE_CURRENT_BINARY_DIR}/test_composition${target_suffix}_$<CONFIGURATION>.py"
"${CMAKE_CURRENT_BINARY_DIR}/test_composition${target_suffix}_$<CONFIG>.py"
APPEND_ENV AMENT_PREFIX_PATH=${CMAKE_CURRENT_BINARY_DIR}/test_ament_index/$<CONFIG>
APPEND_LIBRARY_DIRS "${append_library_dirs}"
TIMEOUT 90)
endmacro()

set(append_library_dirs "${CMAKE_CURRENT_BINARY_DIR}")
if(WIN32)
set(append_library_dirs "${append_library_dirs}/$<CONFIGURATION>")
set(append_library_dirs "${append_library_dirs}/$<CONFIG>")
endif()

call_for_each_rmw_implementation(tests)
Expand Down
4 changes: 2 additions & 2 deletions demo_nodes_cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ if(BUILD_TESTING)
@ONLY
)
file(GENERATE
OUTPUT "test_${exe_list_underscore}${target_suffix}_$<CONFIGURATION>.py"
OUTPUT "test_${exe_list_underscore}${target_suffix}_$<CONFIG>.py"
INPUT "${CMAKE_CURRENT_BINARY_DIR}/test_${exe_list_underscore}${target_suffix}.py.configured"
)

ament_add_nose_test(test_tutorial_${exe_list_underscore}${target_suffix}
"${CMAKE_CURRENT_BINARY_DIR}/test_${exe_list_underscore}${target_suffix}_$<CONFIGURATION>.py"
"${CMAKE_CURRENT_BINARY_DIR}/test_${exe_list_underscore}${target_suffix}_$<CONFIG>.py"
TIMEOUT 30
ENV RCL_ASSERT_RMW_ID_MATCHES=${rmw_implementation})
foreach(executable ${tutorial_executables})
Expand Down
4 changes: 2 additions & 2 deletions intra_process_demo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ if(BUILD_TESTING)
@ONLY
)
file(GENERATE
OUTPUT "test_${exe_list_underscore}${target_suffix}_$<CONFIGURATION>.py"
OUTPUT "test_${exe_list_underscore}${target_suffix}_$<CONFIG>.py"
INPUT "${CMAKE_CURRENT_BINARY_DIR}/test_${exe_list_underscore}${target_suffix}.py.configured"
)

ament_add_nose_test(test_demo_${exe_list_underscore}${target_suffix}
"${CMAKE_CURRENT_BINARY_DIR}/test_${exe_list_underscore}${target_suffix}_$<CONFIGURATION>.py"
"${CMAKE_CURRENT_BINARY_DIR}/test_${exe_list_underscore}${target_suffix}_$<CONFIG>.py"
TIMEOUT 30
ENV RCL_ASSERT_RMW_ID_MATCHES=${rmw_implementation})
set_tests_properties(test_demo_${exe_list_underscore}${target_suffix}
Expand Down

0 comments on commit f0e8517

Please sign in to comment.