![]() On newer versions of ccache run ccache -set-config=cache_dir=PATH_TO_CACHE. If you’re home directory is on a network-mounted drive then the location of this cache be moved to provide the best performance. The default location for the cache directory is $HOME/.ccache on Linux/macOS, and $HOME/AppData/Roaming/ccache on Windows. If you’re build with ccache exhibits warnings that are not usually present then try setting the ccache -set-config=run_second_cpp="true" config option (or set CCACHE_CPP2=yes environment variable on older versions). With your conda environment activated, run ccache -max-size=20G to increase the size of the cache. It is highly recommended that this be used on Linux/macOS systems, and Windows when using a Ninja generator.ĬCache is installed within your conda environment, and CMake is configured to automatically use it when building. Mantid is configured to use the ccache tool if it is available. Follow those instructions and install the Mantid dependencies first.Īlso, if you use the Ninja generator then the executable is called ninja-build on many systems (e.g. The getting started page describes how to set up your environment to build Mantid. Visual Studio, Eclipse, Qt Creator, XCode).įor a “how is it used version” of this guide, look at the scripts used on the builservers for windows or linux/osx. It is used to generate native build files for your platform, which can be Makefiles (for use with make, nmake or jom) for command line builds or project/solution files for an IDE (e.g. Build system customisation using CMake variablesĬMake is the build system for the entirety of Mantid (Framework, MantidQt and MantidWorkbench). ![]()
0 Comments
Leave a Reply. |