diff options
author | Andy Clayton <q3aiml@gmail.com> | 2020-03-31 19:41:50 -0500 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2020-04-02 08:31:33 +0800 |
commit | 0703956e78d1d0352e69273295a0301586f86ca8 (patch) | |
tree | 1ed6c2e1275ee0ff4a13baed7411ec51355361f4 /.travis.yml | |
parent | 0e613c67356f3aa75dab109552c9b2dfbd83a1e4 (diff) | |
download | fork-ledger-0703956e78d1d0352e69273295a0301586f86ca8.tar.gz fork-ledger-0703956e78d1d0352e69273295a0301586f86ca8.tar.bz2 fork-ledger-0703956e78d1d0352e69273295a0301586f86ca8.zip |
use built-in cmake precompiled header support when available
Ledger supports precompiling headers as a build speed optimization.
This is provided via a custom add_pch_rule macro. Similar functionality
is now built-in to CMake starting with the 3.16 release in November
2019. Let's use this when available to fix #1774 and start towards not
needing to maintain our own implementation.
I originally considered removing the macro fallback but in my tests it
saves enough build time that I think it is worth keeping for now.
Fixes #1774
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index ec9e4b12..e5536fc1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -57,8 +57,8 @@ addons: - mpfr before_script: - # On macOS, precompiling system.hh does not work, and boost-python packaging is broken - - if [ "$TRAVIS_OS_NAME" = osx ]; then EXTRA_CMAKE_ARGS="-DPRECOMPILE_SYSTEM_HH=OFF -DBoost_NO_BOOST_CMAKE=ON"; fi + # On macOS boost-python packaging is broken + - if [ "$TRAVIS_OS_NAME" = osx ]; then EXTRA_CMAKE_ARGS="-DBoost_NO_BOOST_CMAKE=ON"; fi - cmake . -DUSE_PYTHON=ON -DPython_FIND_VERSION_MAJOR=${PY_MAJOR} -DBUILD_DEBUG=ON $EXTRA_CMAKE_ARGS - make VERBOSE=1 |