File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments