Improve ccache implementation
commitabc9125720ad3ece3d68daf260a5bee15fed0717
authorMark Abraham <mark.j.abraham@gmail.com>
Sat, 27 Oct 2018 13:24:24 +0000 (27 15:24 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Tue, 30 Oct 2018 12:08:59 +0000 (30 13:08 +0100)
treeb03eb9b2f1c7d5dfbc039d2584307e5f480d21d6
parent3a461171dbbdd14d1073cdb72e66c01cb779e044
Improve ccache implementation

Renamed the launch-c* scripts to make clear that they are supporting
infrastructure for ccache, so maintainers know what the script is for
without having to read it.

Moved them into the admin directory, which contains other
development-time resources. This also means that these scripts are no
longer in the top-level directory of the unpacked tarball, where they
might confuse users. ccache will still work for builds from the
tarball, however.

Eliminated temporary helper variables that didn't add value to
how we use configure_file().

Renamed GMX_CACHE_.*_COMPILER variables to use CCACHE rather
than CACHE, for consistency.

This change would have broken build trees that used to work with
ccache, because the wrapper scripts may not be regenerated
because the old GMX_CACHE_* variables are defined. But
changing to GMX_CCACHE_* has the side effect of fixing this
because the new variables will be undefined in such build trees.

Change-Id: I3b449251ee06adc8023ac1a58cb98a7b0be9bba5
admin/ccache-wrapper-c.in [moved from launch-c.in with 66% similarity]
admin/ccache-wrapper-cxx.in [moved from launch-cxx.in with 66% similarity]
cmake/gmxCcache.cmake