Commit c5adfc72 authored by GILLES Sebastien's avatar GILLES Sebastien

#1282 Add README to explain PreCache files.

parent 60f1e880
Examples of pre-cache files that might be provided to cmake with the -C alias, e.g.:
cmake -G Ninja -C ../cmake/PreCache/mac_os_clang_static_lib.cmake
The idea is not to clutter the command line with too much arguments; arguably only one pre-cache file would have been enough but for instance switching the BLAS between macos (where usually framework Accelerate is used) and Linux (for which default is using Openblas) would be annoying.
The default paths inside reflects the default convention within the M3DISIM team, which are:
. On macOS, which is the work environment for most team members, providing the third-party libraries in /Users/Shared/LibraryVersions/*compiler tag*. This way, the code might be tested with several compilers on a developer'
s laptop.
. On Linux (typically for cluster use or continuous integration), only one flavor of the third party libraries is installed, so /opt/Library is used.
Obviously you may very easily change this behaviour by copying an existing file and modifying it to suit your needs! You may also not modify it and specify the options you want changed in command line, e.g:
cmake -G Ninja -C ../cmake/PreCache/mac_os_clang_static_lib.cmake -DMOREFEM_THIRD_PARTY_LIBRARIES_DIR /home/user/my_lib)
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment