You have the right idea, however on the command line you want:
cmake -DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/g++ <path_to_source>
The differences are subtle. There should be no space between -D and the variable, so CMake interprets your variable assignment as a directory. CMake also uses CXX for special C ++ variables, which saves it according to Make.
j3lamp Apr 21 '13 at 14:03 2013-04-21 14:03
source share