I have been asked to compile C Source codes with g++ compiler in cMake environment.
I tried one of the solution from Stackoverflow.
Solution in SO: Set CC,CXX