fix serious performance problem.
fix.
fix.
fix.
fix compile error.
use auto&.
Merge pull request #9561 from wefiends/upstream-v3

CMake - Append new C flags when adding defines instead of overriding.
Merge pull request #9567 from joewan/v3-improve-perf

fix serious performance problem of Animate.