Looking at the CMakeCache.txt file, I don't see CMAKE_C_COMPILER_ID.  I do see:

//CXX compiler.
CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++

//C compiler.
CMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc

which result in:

% /usr/bin/c++ --version
Apple clang version 4.0

% /usr/bin/gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) 
(LLVM build 2336.11.00)

So, I think CMake is getting confused by the different compiler names.  
"/usr/bin/g++" does indeed link to GCC, while "/usr/bin/cc" links to clang, if 
that helps.

I also forgot to mention that this was using the latest GIT master for GNU 
Radio, and UHD is installed and seems to work w/o modification. - MLD

On Aug 6, 2012, at 10:12 AM, Josh Blum <j...@ettus.com> wrote:
> I recall seeing this once before, we never resolved it:
> http://www.ruby-forum.com/topic/4216278
> 
> It looks like we could check if the compiler is clang and add:
> -Werror=unused-command-line-argument
> 
> what does ${CMAKE_C_COMPILER_ID} yield for you in cmake land?

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to