[CMake] Setting compiler for cmake

Óscar Fuentes ofv at wanadoo.es
Fri Oct 4 06:40:36 EDT 2013


outro pessoa <outro.pessoa at gmail.com>
writes:

> If I edit the file to use clang as the compiler instead of gcc, will the
> version number be necessary or can I skip that? The libraries are for 3.2
> and 3.3.

Do you mean something like:

cmake -DCAMKE_C_COMPILER=clang-3.3 .....

?

The version number there helps when you have more than one version of
clang installed. Otherwise, you can omit it.

BTW, please send this type of questions only to the user's list.



More information about the CMake mailing list