File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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:
4140script :
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
You can’t perform that action at this time.
0 commit comments