Currently, I invoke CMake from my build directory as follows:
CXX="/opt/gcc-4.8/bin/g++" cmake ..
to get CMake to use this particular compiler. Otherwise it uses the operating system default compiler.
My PATH has "/opt/gcc-4.8/bin
" in front of everything else. So, instead of prepending the environmental variable is there way to specify in the "`CMakeLists.txt" file to use the default g++ on the path?