diff options
author | Alan Antonuk <alan.antonuk@gmail.com> | 2016-10-14 21:35:26 -0700 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2016-10-14 22:12:25 -0700 |
commit | 4f50d2ec9d7b08ffb39d69731a58cad17e7d88b7 (patch) | |
tree | 8644afcdc1e2f8ee0a85a49e55d5c4d94ef342af | |
parent | d7fcefe56f526b1a996746433220ddf0b9566789 (diff) | |
download | rabbitmq-c-fix_osx.tar.gz |
CI: install openssl on travis/osx.fix_osx
MacOSX 10.11 no longer supplies headers for openssl. Install OpenSSL
using homebrew, and tell cmake where to find it.
-rwxr-xr-x | travis.sh | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -8,7 +8,8 @@ build_autotools() { build_cmake() { mkdir $PWD/_build && cd $PWD/_build - cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/../_install -DCMAKE_C_FLAGS="-Werror" + cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/../_install -DCMAKE_C_FLAGS="-Werror" \ + ${_CMAKE_OPENSSL_FLAG} cmake --build . --target install ctest -V . } @@ -50,6 +51,8 @@ osx) # This prints out a long list of updated packages, which isn't useful. brew update > /dev/null brew install popt + brew outdated openssl || brew install openssl + export _CMAKE_OPENSSL_FLAG="-DOPENSSL_ROOT_DIR=/usr/local/opt/openssl" ;; esac |