Skip to content

Commit

Permalink
Fix TravisCI OSX build
Browse files Browse the repository at this point in the history
  • Loading branch information
rndi committed Nov 26, 2019
1 parent 3c16200 commit 46837e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .travis.yml
Expand Up @@ -9,6 +9,9 @@ addons:
- cmake
- libssl-dev
- build-essential
homebrew:
packages:
- openssl

matrix:
include:
Expand Down Expand Up @@ -48,7 +51,8 @@ script:
elif [ "$TRAVIS_OS_NAME" == "linux" ]; then
cmake . -DCMAKE_BUILD_TYPE=$BUILD_TYPE $BUILD_OPTS -DENABLE_UNITTESTS="ON";
elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
cmake . -DCMAKE_BUILD_TYPE=$BUILD_TYPE $BUILD_OPTS -DENABLE_UNITTESTS="ON" -DCMAKE_PREFIX_PATH=/usr/local/opt/openssl;
export PKG_CONFIG_PATH=$(brew --prefix openssl)"/lib/pkgconfig";
cmake . -DCMAKE_BUILD_TYPE=$BUILD_TYPE $BUILD_OPTS -DENABLE_UNITTESTS="ON";
fi
- make
- if [ "$TRAVIS_COMPILER" != "x86_64-w64-mingw32-g++" ]; then ctest --extra-verbose; fi

0 comments on commit 46837e0

Please sign in to comment.