travis-ci/osx: fix compiling/linking openssl libraries

And we need that $(echo /path/*) otherwise bash will expand it only during
assignment that variable to another one, and this doesn't work correctly.
This commit is contained in:
Azat Khuzhin 2016-10-16 23:46:09 +03:00
parent d7ceae593a
commit 9d2f8d4b80

View File

@ -29,6 +29,14 @@ before_install:
if [ "$CC" == "gcc" ]; then
export CC=$(ls -t /usr/local/bin/gcc-?.?);
fi
export OPENSSL_ROOT=$(echo /usr/local/Cellar/openssl/*);
export
CMAKE_INCLUDE_PATH=$OPENSSL_ROOT/include
CMAKE_LIBRARY_PATH=$OPENSSL_ROOT/lib;
export
CFLAGS=-I$CMAKE_INCLUDE_PATH
LDFLAGS=-L$CMAKE_LIBRARY_PATH;
fi
addons:
apt: