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

2017-07-31 Thread jupiter
Thanks Micha and Nils. Cheers. On Sun, Jul 30, 2017 at 6:54 PM, Micha Hergarden wrote: > On 30-07-17 04:36, jupiter wrote: > > 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? > >

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

2017-07-30 Thread Nils Gladitz
On 30.07.2017 10:54, Micha Hergarden wrote: On 30-07-17 04:36, jupiter wrote: I thought if I add -DCMAKE_CC_COMPILER=gcc that error should go, no, it still compile with the specific default cc: The corresponding CMake cache variable for the C compiler is CMAKE_C_COMPILER (note C not CC). Al

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

2017-07-30 Thread Micha Hergarden
On 30-07-17 04:36, jupiter wrote: > 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 > wrote:

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

2017-07-29 Thread jupiter
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 wrote: > Hi, > > How can I set up the cmake not to check /usr/bin/cc but to check $CC >

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

2017-07-29 Thread jupiter
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 -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware of