Skip to content

Commit

Permalink
Brew CI: set PATH if [email protected] is used
Browse files Browse the repository at this point in the history
gazebo11 needs an older version of cmake on homebrew,
but it is keg-only so prepend its bin folder to the PATH.
Workaround for #573.

Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters committed Nov 30, 2021
1 parent 25fb8bc commit bba20d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jenkins-scripts/lib/project-default-devel-homebrew-amd64.bash
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ fi
if brew ruby -e "exit ! '${PROJECT_FORMULA}'.f.recursive_dependencies.map(&:name).keep_if { |d| d == 'qwt-qt5' }.empty?"; then
CMAKE_ARGS='-DQWT_WIN_INCLUDE_DIR=/usr/local/opt/qwt-qt5/lib/qwt.framework/Headers -DQWT_WIN_LIBRARY_DIR=/usr/local/opt/qwt-qt5/lib'
fi
# Workaround for [email protected]: set PATH
if brew ruby -e "exit ! '${PROJECT_FORMULA}'.f.recursive_dependencies.map(&:name).keep_if { |d| d == '[email protected]' }.empty?"; then
export PATH=/usr/local/opt/[email protected]/bin:${PATH}
fi
# Workaround for tbb@2020_u3: set CPATH, LIBRARY_PATH, and CMAKE_PREFIX_PATH
if brew ruby -e "exit ! '${PROJECT_FORMULA}'.f.recursive_dependencies.map(&:name).keep_if { |d| d == 'tbb@2020_u3' }.empty?"; then
export CMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}:/usr/local/opt/tbb@2020_u3
Expand Down

0 comments on commit bba20d1

Please sign in to comment.