cmake error "Could not find compiler set in environment variable CC:"
Hi all:
I am trying to compile source code on Mac 10.9 using gcc. However, the default compiler is clang, and I have successfully change the compiler to gcc. when I ran "$ gcc --version", I got the message of "gcc (MacPorts gcc48 4.8.2_0) 4.8.2". However, when I ran the command "cmake -DFETCH_BOOST=TRUE .." to compile source code in the "build" folder, I got the message of "Could not find compiler set in environment variable CC:". What should I do? I think the problem is that I install cmake first and then switch to the gcc compiler. In this case cmake will find clang first and then gcc?
Thanks for your help!
sewen67
|