Skip to content

Commit

Permalink
Use find_package(... QUIET)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
  • Loading branch information
ivanpauno committed May 13, 2020
1 parent 272b6c7 commit 5d2790a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
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
"Executing rosidl_typesupport_c extension point when rosidl_generator_c wasn't found."
"Make sure rosidl_generator_c is installed.")
endif()

set(_output_path
"${CMAKE_CURRENT_BINARY_DIR}/rosidl_typesupport_c/${PROJECT_NAME}")
set(_generated_sources "")
Expand Down
4 changes: 2 additions & 2 deletions rosidl_typesupport_c/rosidl_typesupport_c-extras.cmake.in
Expand Up @@ -10,9 +10,9 @@ find_package(ament_cmake_core QUIET REQUIRED)
get_used_typesupports(_typesupports "rosidl_typesupport_c")

# Make sure extension points are registered in order
find_package(rosidl_generator_c QUIET REQUIRED)
find_package(rosidl_generator_c QUIET)
foreach(_typesupport ${_typesupports})
find_package(${_typesupport} QUIET REQUIRED)
find_package(${_typesupport} QUIET)
endforeach()

ament_register_extension(
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_cpp_FOUND)
message(FATAL_ERROR
"Executing rosidl_typesupport_cpp extension point when rosidl_generator_cpp wasn't found."
"Make sure rosidl_generator_cpp is installed.")
endif()

set(_output_path
"${CMAKE_CURRENT_BINARY_DIR}/rosidl_typesupport_cpp/${PROJECT_NAME}")
set(_generated_sources "")
Expand Down
4 changes: 2 additions & 2 deletions rosidl_typesupport_cpp/rosidl_typesupport_cpp-extras.cmake.in
Expand Up @@ -10,9 +10,9 @@ find_package(rosidl_typesupport_c QUIET REQUIRED)
get_used_typesupports(_typesupports "rosidl_typesupport_cpp")

# Make sure extension points are registered in order
find_package(rosidl_generator_cpp QUIET REQUIRED)
find_package(rosidl_generator_cpp QUIET)
foreach(_typesupport ${_typesupports})
find_package(${_typesupport} QUIET REQUIRED)
find_package(${_typesupport} QUIET)
endforeach()

ament_register_extension(
Expand Down

0 comments on commit 5d2790a

Please sign in to comment.