Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force extension points to be registered in order #485

Merged
merged 3 commits into from May 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -12,6 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

if(NOT rosidl_generator_c_FOUND)
message(FATAL_ERROR
"'rosidl_generator_c' not found when executing "
"'rosidl_typesupport_introspection_c' extension.")
endif()

set(_output_path
"${CMAKE_CURRENT_BINARY_DIR}/rosidl_typesupport_introspection_c/${PROJECT_NAME}")
set(_generated_header_files "")
Expand Down
Expand Up @@ -6,6 +6,9 @@
set(rosidl_typesupport_introspection_c_LIBRARY_TYPE
"@rosidl_typesupport_introspection_c_LIBRARY_TYPE@")

# Make sure rosidl_generator_c extension point is registered first
find_package(rosidl_generator_c QUIET)

find_package(ament_cmake_core QUIET REQUIRED)
ament_register_extension(
"rosidl_generate_idl_interfaces"
Expand Down
Expand Up @@ -12,6 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

if(NOT rosidl_generator_c_FOUND)
message(FATAL_ERROR
"'rosidl_generator_cpp' not found when executing "
"'rosidl_typesupport_introspection_cpp' extension.")
endif()

set(_output_path
"${CMAKE_CURRENT_BINARY_DIR}/rosidl_typesupport_introspection_cpp/${PROJECT_NAME}")
set(_generated_header_files "")
Expand Down
Expand Up @@ -6,6 +6,9 @@
set(rosidl_typesupport_introspection_cpp_LIBRARY_TYPE
"@rosidl_typesupport_introspection_cpp_LIBRARY_TYPE@")

# Make sure extension points are registered in order
find_package(rosidl_generator_cpp QUIET)

find_package(ament_cmake_core QUIET REQUIRED)
ament_register_extension(
"rosidl_generate_idl_interfaces"
Expand Down