I can\'t find any info on it, but only the other way around (e.g., how to set CMake to use clang).
I\'ve installed gcc-4.8 using brew, setup all dependencies, header
CMake doesn't (always) listen to CC and CXX. Instead use CMAKE_C_COMPILER and CMAKE_CXX_COMPILER:
CC
CXX
CMAKE_C_COMPILER
CMAKE_CXX_COMPILER
cmake -DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/g++ ...
See also the documentation.
Alternatively, you can provide a toolchain file, but that might be overkill in this case.