-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add possibility to pass custom cmake args to colcon build #46
base: main
Are you sure you want to change the base?
Conversation
# build ROS workspace | ||
RUN if [[ -x "$(command -v colcon)" ]]; then \ | ||
source /opt/ros/${ROS_DISTRO}/setup.bash && \ | ||
[[ -f /opt/ws_rmw_zenoh/install/setup.bash ]] && source /opt/ws_rmw_zenoh/install/setup.bash ; \ | ||
[[ -f /opt/ws_base_image/install/setup.bash ]] && source /opt/ws_base_image/install/setup.bash ; \ | ||
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release ; \ | ||
colcon build --cmake-args ${CUSTOM_CMAKE_ARGS} ; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if set to empty string? Still valid?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested in minimal examples -> still valid
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename to CMAKE_ARGS?
The PR should be ready now. The |
custom-cmake-args
/CUSTOM_CMAKE_ARGS
"-DCMAKE_BUILD_TYPE=Release"