Commit abf5336304ad7df85bbca2289a61b7799029fa1b

Edward Thomson 2018-08-02T14:47:03

ci: set PKG_CONFIG_PATH on travis Homebrew's formula for openssl is "keg-only", which means it does not install it into /usr/local. On macOS builds, we need to set PKG_CONFIG_PATH to include it.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/.travis.yml b/.travis.yml
index 16f6ca5..09fcdc7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,6 +19,7 @@ env:
   - MBEDTLS_DIR=/tmp/mbedtls
   - SKIP_APT=1
   - SKIP_MBEDTLS_INSTALL=1
+  - PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig
  matrix:
   - CMAKE_OPTIONS="-DTHREADSAFE=ON -DENABLE_TRACE=ON -DCMAKE_BUILD_TYPE=Release"
   - CMAKE_OPTIONS="-DTHREADSAFE=OFF -DBUILD_EXAMPLES=ON"