A qmake project is sometimes built using Qt that was compiled with ltcg. Since the Qt's ltcg build setting doesn't propagate automatically to that of the project that uses given Qt install, the MSVC linker wastes time and issues the following warning:
MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
Is there a way to conditionally enable ltcg for the project iff the Qt it was built with also had ltcg enabled?