ecBuild CacheΒΆ

During initialisation, ecBuild introspects the compiler and operating system and performs a number of checks. The result of these is written to a dedicated ecbuild-cache.cmake file in the build tree. This cache may be used to speed up subsequent clean builds i.e. those where no CMakeCache.txt exists yet.

To use the ecBuild cache, configure with -DECBUILD_CACHE=<cache-file>, where <cache-file> is the path to an existing ecbuild-cache.cmake.

Note

The ecBuild cache is specific to compiler and operating system. Do not attempt to use a cache file created on a different machine or with a different compiler!