Skip to content

Commit 0eddfa9

Browse files
Only process idl interfaces
Signed-off-by: Miguel Company <[email protected]>
1 parent fc44c3a commit 0eddfa9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test_communication/CMakeLists.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,21 @@ if(BUILD_TESTING)
4141
foreach(interface_file ${interface_files})
4242
get_filename_component(interface_ns "${interface_file}" DIRECTORY)
4343
get_filename_component(interface_ns "${interface_ns}" NAME)
44+
# Only process IDL interfaces
4445
string_ends_with("${interface_file}" ".idl" is_idl)
45-
if(is_idl AND interface_ns STREQUAL "msg")
46+
if(NOT is_idl)
47+
continue()
48+
endif()
49+
# Decide category based on interface_ns
50+
if(interface_ns STREQUAL "msg")
4651
list(APPEND message_files "${interface_file}")
4752
continue()
4853
endif()
49-
string_ends_with("${interface_file}" ".srv" is_service)
50-
if(is_service AND interface_ns STREQUAL "srv")
54+
if(interface_ns STREQUAL "srv")
5155
list(APPEND service_files "${interface_file}")
5256
continue()
5357
endif()
54-
if(is_idl AND interface_ns STREQUAL "action")
58+
if(interface_ns STREQUAL "action")
5559
list(APPEND action_files "${interface_file}")
5660
continue()
5761
endif()

0 commit comments

Comments
 (0)