Skip to content

Commit bb48921

Browse files
committed
Adjust cache check and prefix dir to new location
1 parent 4e647a5 commit bb48921

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ install:
2929
# Install a recent version of the Protobuf
3030
- |
3131
PROTOBUF_URL="https://github.com/google/protobuf/releases/download/v3.2.0/protobuf-cpp-3.2.0.tar.gz"
32-
if [ ! -f ${DEPS_DIR}/protobuf/src/.libs/protoc ] ; then mkdir -p protobuf ; travis_retry wget --no-check-certificate --quiet -O - ${PROTOBUF_URL} | tar --strip-components=1 -xz -C protobuf ; cd protobuf ; ./configure --prefix=${DEPS_DIR}/protobuf/install ; make ; else cd protobuf ; fi
33-
make install
32+
if [ ! -f ${DEPS_DIR}/protobuf/install/protoc ] ; then mkdir -p protobuf ; travis_retry wget --no-check-certificate --quiet -O - ${PROTOBUF_URL} | tar --strip-components=1 -xz -C protobuf ; cd protobuf ; ./configure --prefix=${DEPS_DIR}/protobuf/install ; make ; make install ; fi
3433
export PATH=${DEPS_DIR}/protobuf/install/bin:${PATH}
3534
3635
# Change directory back to default build directory.
@@ -41,7 +40,7 @@ before_script:
4140
script:
4241
- mkdir -p build
4342
- cd build
44-
- cmake ..
43+
- cmake -D CMAKE_PREFIX_PATH:PATH=${DEPS_DIR}/protobuf/install ..
4544
- cmake --build .
4645
- cd ..
4746
- python setup.py build

0 commit comments

Comments
 (0)