File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ install:
3434 - if [ $TRAVIS_OS_NAME == linux ]; then bash scripts/compile_YAML-CPP.travis; fi
3535
3636before_script :
37- - cmake . -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" -DYAMLCPP_INCLUDE_DIR=$TRAVIS_BUILD_DIR/dependency-prefix/include -DCMAKE_CXX_FLAGS="${EXTRA_WARNING_FLAGS}" -DCMAKE_C_FLAGS="${EXTRA_WARNING_FLAGS}"
37+ - bash scripts/cmake_prepare_build.travis
3838
3939script : make -j2
4040
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ CMAKE_OPTIONS=(
4+ -DYAMLCPP_INCLUDE_DIR=" ${TRAVIS_BUILD_DIR} /dependency-prefix/include"
5+ -DCMAKE_BUILD_TYPE=" ${BUILD_TYPE} "
6+ -DCMAKE_CXX_FLAGS=" ${EXTRA_WARNING_FLAGS} "
7+ -DCMAKE_C_FLAGS=" ${EXTRA_WARNING_FLAGS} "
8+ )
9+
10+ echo
11+ echo " CMAKE options are: ${CMAKE_OPTIONS[@]} "
12+ echo
13+
14+ cmake ${CMAKE_OPTIONS[@]} .
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
13CMAKE_OPTIONS=(
24 -DCMAKE_INSTALL_PREFIX=" ${TRAVIS_BUILD_DIR} /dependency-prefix"
35 -DCMAKE_BUILD_TYPE=" ${BUILD_TYPE} "
911echo " CMAKE options are: ${CMAKE_OPTIONS[@]} "
1012echo
1113
12- mkdir -p $TRAVIS_BUILD_DIR/dependencies/ \
13- && pushd $TRAVIS_BUILD_DIR/dependencies/ \
14- && git clone https://github.com/jbeder/yaml-cpp.git \
15- && pushd yaml-cpp \
16- && git checkout yaml-cpp-0.6.2
14+ mkdir -p ${ TRAVIS_BUILD_DIR} /dependencies/ \
15+ && pushd ${ TRAVIS_BUILD_DIR} /dependencies/ \
16+ && git clone https://github.com/jbeder/yaml-cpp.git \
17+ && pushd yaml-cpp \
18+ && git checkout yaml-cpp-0.6.2
1719cmake ${CMAKE_OPTIONS[@]} .
1820
1921make -j2 && make install && popd && popd
You can’t perform that action at this time.
0 commit comments