Skip to content

Commit

Permalink
Add ignore for ubuntu!=24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
HoangGiang93 committed Aug 8, 2024
1 parent d72c83a commit 9548ed7
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
cmake_minimum_required(VERSION 3.16)
project(multiverse_control LANGUAGES CXX)

execute_process(
COMMAND lsb_release -rs
OUTPUT_VARIABLE UBUNTU_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
)

if(NOT ${UBUNTU_VERSION} STREQUAL "24.04")
message(WARNING "multiverse_control is only supported on Ubuntu 24.04")
return()
endif()

if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
add_compile_options(-Wall -Wextra)
endif()
Expand All @@ -20,8 +31,7 @@ find_package(controller_manager 4.0.0)

# Handle the case where the required version is not found
if(NOT controller_manager_FOUND)
message(FATAL_ERROR "ros2_control version 4.0.0 or higher is required. "
"Are you using the correct branch of the ros2_control_demos repository?")
message(FATAL_ERROR "ros2_control version 4.0.0 or higher is required. ")
endif()

# find dependencies
Expand Down

0 comments on commit 9548ed7

Please sign in to comment.