Skip to content

Commit

Permalink
update ros2 build
Browse files Browse the repository at this point in the history
  • Loading branch information
admercs committed Mar 7, 2024
1 parent beba3c4 commit d025893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build_ros2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ set -x

# DISTRO="$(lsb_release -sc)"
ARCH="$(dpkg --print-architecture)"
GCC_VERSION='11'
CLANG_VERSION='12'
source /etc/os-release # UBUNTU_CODENAME

###
Expand Down Expand Up @@ -63,7 +63,7 @@ echo 'Building AutonomySim ROS2 Wrapper...'

source "/opt/ros/${ROS_DISTRO}/setup.bash"
pushd ./ros2
colcon build --cmake-args "-DCMAKE_C_COMPILER=/usr/bin/gcc-${GCC_VERSION}" --cmake-args "-DCMAKE_CXX_COMPILER=/usr/bin/g++-${GCC_VERSION}"
colcon build --cmake-args -DCMAKE_C_COMPILER="/usr/bin/clang-${CLANG_VERSION}" --cmake-args -DCMAKE_CXX_COMPILER="/usr/bin/clang++-${CLANG_VERSION}"
popd

echo '-------------------------------------------------------------------------------'
Expand Down

0 comments on commit d025893

Please sign in to comment.