• Sebastian Holtermann's avatar
    Respect CMAKE_<LANG>_COMPILER_ARG1 in CMAKE_<LANG>_COMPILER_PREDEFINES_COMMAND · 83f2d483
    Sebastian Holtermann authored
    AUTOMOC used to fail to generate ``moc_predefs.h`` when ``ccache`` was used
    as a compiler starter by e.g. configuring a project with the environment
    variable CXX="ccache g++".
    The reason was that ``CMAKE_<LANG>_COMPILER_ARG1`` wasn't respected in the
    definition of ``CMAKE_<LANG>_COMPILER_PREDEFINES_COMMAND`` for various
    compilers.  This is fixed by this patch.
    
    Fixes #17275.
    83f2d483