Install ccache on OSX and add GTSAM_BUILD_WITH_CCACHE flag to cmake

release/4.3a0
Frank Dellaert 2019-06-02 16:43:33 -04:00
parent 2382d95825
commit b06e5f0e83
2 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,7 @@ function build_and_test ()
fi
cmake $SOURCE_DIR \
-DGTSAM_BUILD_WITH_CCACHE=ON
-DGTSAM_BUILD_UNSTABLE=$GTSAM_BUILD_UNSTABLE \
-DGTSAM_BUILD_EXAMPLES_ALWAYS=$GTSAM_BUILD_EXAMPLES_ALWAYS \
-DGTSAM_BUILD_TESTS=$GTSAM_BUILD_TESTS

View File

@ -19,6 +19,10 @@ addons:
before_install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update ; fi
install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install ccache ; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then export PATH="/usr/local/opt/ccache/libexec:$PATH" ; fi
script:
- bash .travis.sh