Merge pull request #2344 from ongjunjie/fix-cmake-overwrite-compiler

fix cmake script overwriting compiler path