Re: [CMake] CMAKE__COMPILER_ID not set on Darwin

2013-01-30 Thread David Cole
CMAKE_CXX_COMPILER_ID should be set with CMake 2.8.10.2 and later... What version of CMake are you using? -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: h

Re: [CMake] CMAKE__COMPILER_ID not set on Darwin

2013-01-30 Thread Nick Overdijk
We use this if(CMAKE_C_COMPILER MATCHES "clang" OR CMAKE_CXX_COMPILER MATCHES "clang") set(COMPILING_WITH_CLANG True) elseif(CMAKE_C_COMPILER MATCHES ".*gcc.*" OR CMAKE_CXX_COMPILER MATCHES ".*g[+][+].*") set(COMPILING_WITH_GCC True) endif() In our project On 2013-30-01, at 14:4

[CMake] CMAKE__COMPILER_ID not set on Darwin

2013-01-30 Thread Thomas Nilsson
I was looking for a way to identify the compiler as clang to know if I should pass it a clang specific flag ("-x c++"). On Darwin default compiler is Clang used through /usr/bin/cc and and /usr/bin/c++. The identification is clearly signaled as "Clang 4.1.0" but CMAKE_CXX_COMPILER_ID is not set