[CMake] The C compiler "/usr/bin/cc" is not able to compile a simple test program.

jupiter jupiter.hce at gmail.com
Sat Jul 29 22:36:34 EDT 2017


I thought if I add -DCMAKE_CC_COMPILER=gcc that error should go, no, it
still compile with the specific default cc:

/usr/bin/cc ....

How could I fix it?

Thank you.

On Sun, Jul 30, 2017 at 11:51 AM, jupiter <jupiter.hce at gmail.com> wrote:

> Hi,
>
> How can I set up the cmake not to check /usr/bin/cc but to check $CC
> (which link to gcc without hard corded path in the environment)?
>
> Thank you.
>
> Regards
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170730/a5897e17/attachment.html>


More information about the CMake mailing list