Skip to content

Commit

Permalink
reduce verbosity when Connext is not available (ros2#311)
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Bonnie <dbbonnie@amazon.com>
  • Loading branch information
dirk-thomas authored and dabonnie committed Apr 3, 2019
1 parent ef45310 commit b8fb369
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion rmw_connext_cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ endif()
find_package(ament_cmake REQUIRED)

find_package(connext_cmake_module REQUIRED)
find_package(Connext MODULE)
find_package(Connext QUIET MODULE)
if(Connext_FOUND)
find_package(Connext MODULE)
endif()
if(NOT Connext_FOUND OR CONNEXT_STATIC_DISABLE)
ament_package()
if(NOT Connext_FOUND)
Expand Down
5 changes: 4 additions & 1 deletion rmw_connext_dynamic_cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ endif()
find_package(ament_cmake REQUIRED)

find_package(connext_cmake_module REQUIRED)
find_package(Connext MODULE)
find_package(Connext QUIET MODULE)
if(Connext_FOUND)
find_package(Connext MODULE)
endif()
if(NOT Connext_FOUND OR CONNEXT_DYNAMIC_DISABLE)
ament_package()
if(NOT Connext_FOUND)
Expand Down
5 changes: 4 additions & 1 deletion rmw_connext_shared_cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ endif()

find_package(ament_cmake REQUIRED)
find_package(connext_cmake_module REQUIRED)
find_package(Connext MODULE)
find_package(Connext QUIET MODULE)
if(Connext_FOUND)
find_package(Connext MODULE)
endif()
if(NOT Connext_FOUND)
ament_package()
message(WARNING "Could not find RTI Connext - skipping '${PROJECT_NAME}'")
Expand Down

0 comments on commit b8fb369

Please sign in to comment.