@@ -42,14 +42,16 @@ find_package(rcutils REQUIRED)
42
42
find_package (rosidl_typesupport_connext_c)
43
43
if (NOT rosidl_typesupport_connext_c_FOUND)
44
44
ament_package()
45
- message (WARNING "Could not find ROSIDL TypeSupport for Connext (rosidl_typesupport_connext_c) - skipping '${PROJECT_NAME} '" )
45
+ message (WARNING
46
+ "Could not find ROSIDL TypeSupport for Connext (rosidl_typesupport_connext_c) - skipping '${PROJECT_NAME} '" )
46
47
return ()
47
48
endif ()
48
49
49
50
find_package (rosidl_typesupport_connext_cpp)
50
51
if (NOT rosidl_typesupport_connext_cpp_FOUND)
51
52
ament_package()
52
- message (WARNING "Could not find ROSIDL TypeSupport for Connext (rosidl_typesupport_connext_cpp) - skipping '${PROJECT_NAME} '" )
53
+ message (WARNING
54
+ "Could not find ROSIDL TypeSupport for Connext (rosidl_typesupport_connext_cpp) - skipping '${PROJECT_NAME} '" )
53
55
return ()
54
56
endif ()
55
57
@@ -93,7 +95,8 @@ add_custom_command(
93
95
# server is in rosidl_typesupport_connext_cpp, and that uses a different set of arguments.
94
96
# We don't want to accidentally connect to that other version of the server that might
95
97
# still be running.
96
- COMMAND "${Connext_DDSGEN} " -language C++ -unboundedSupport "connext_static_serialized_data.idl" -d ${generated_directory}
98
+ COMMAND
99
+ "${Connext_DDSGEN} " -language C++ -unboundedSupport "connext_static_serialized_data.idl" -d ${generated_directory}
97
100
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR} /resources"
98
101
COMMENT "Generating serialized type support for RTI Connext (using '${Connext_DDSGEN} ')"
99
102
VERBATIM
@@ -107,7 +110,9 @@ find_file(connext_version_header "ndds_version.h"
107
110
if (NOT connext_version_header)
108
111
message (FATAL_ERROR "Failed to find 'ndds/ndds_version.h' in '${Connext_INCLUDE_DIRS} '" )
109
112
endif ()
110
- file (STRINGS "${connext_version_header} " connext_define_major_version LIMIT_COUNT 1 REGEX "#define RTI_DDS_VERSION_MAJOR [0-9]+" )
113
+ file (STRINGS "${connext_version_header} " connext_define_major_version
114
+ LIMIT_COUNT 1
115
+ REGEX "#define RTI_DDS_VERSION_MAJOR [0-9]+" )
111
116
if ("${connext_define_major_version} " STREQUAL "" )
112
117
message (FATAL_ERROR "Failed to find '#define RTI_DDS_VERSION_MAJOR' in '${connext_version_header} '" )
113
118
endif ()
@@ -139,7 +144,11 @@ set(patched_files
139
144
)
140
145
add_custom_command (
141
146
OUTPUT ${patched_files}
142
- COMMAND ${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR} /bin/apply-patch.py" --input ${generated_files} --patch ${patch_files} --out ${patched_files}
147
+ COMMAND
148
+ ${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR} /bin/apply-patch.py"
149
+ --input ${generated_files}
150
+ --patch ${patch_files}
151
+ --out ${patched_files}
143
152
DEPENDS ${generated_files}
144
153
COMMENT "Patching serialized type support for RTI Connext"
145
154
VERBATIM
0 commit comments