Provide more advice for building client software - Redmine #3279
The gromacs-toolchain${GMX_LIBS_SUFFIX}.cmake file installed by
InstallLibInfo.cmake is not documented or mentioned in warning messages.
For instance, gromacs-config.cmake defines gromacs_check_compiler() to
help client code identify a compatible toolchain, but only gives the
value of {GROMACS\_
{LANG}_COMPILER}. The CMake toolchain file was
introduced to help client software initialize CMake with appropriate
compilers (or compiler wrappers), but GMXTOOLCHAINDIR and
-DCMAKE_TOOLCHAIN_FILE do not appear in any documentation.
As part of resolving this issue, we may want to evaluate whether a CMake toolchain file is the correct and only solution. An alternative may be a packaged subset of CMake cache variables to be loaded with “-C”.
Note that we may want to distinguish between an MPI compiler wrapper and the wrapped compiler, which the generated toolchain file does not currently do.
(from redmine: issue id 3279, created on 2020-01-02 by eirrgang)
- Relations:
- relates #2045 (closed)