Skip to content

Commit 0a98842

Browse files
committed
.travis.yml: do not link gnu-getopt and readline, but adapt PATH and CMAKE_PREFIX_PATH instead
Newer HomeBrew versions seem to refuse to link and show the following output instead: Warning: Refusing to link macOS provided/shadowed software: gnu-getopt If you need to have gnu-getopt first in your PATH run: echo 'export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"' >> /Users/travis/.bash_profile Warning: Refusing to link macOS provided/shadowed software: readline For compilers to find readline you may need to set: export LDFLAGS="-L/usr/local/opt/readline/lib" export CPPFLAGS="-I/usr/local/opt/readline/include" For pkg-config to find readline you may need to set: export PKG_CONFIG_PATH="/usr/local/opt/readline/lib/pkgconfig"
1 parent 2648cbe commit 0a98842

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.travis.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,15 @@ before_install:
6363
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
6464
brew update
6565
brew reinstall boost cmake ccache gnu-getopt readline omniorb
66-
brew link --force gnu-getopt
67-
brew link --force readline
66+
67+
# gnu-getopt is keg-only and newer HomeBrew versions refuse to link it.
68+
#brew link --force gnu-getopt
69+
export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"
70+
71+
# readline is keg-only and newer HomeBrew versions refuse to link it.
72+
#brew link --force readline
73+
export CMAKE_PREFIX_PATH="/usr/local/opt/readline"
74+
6875
export PATH="/use/local/opt/ccache/libexec:$PATH"
6976
fi
7077

0 commit comments

Comments
 (0)