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....@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
>
>
>
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to