[C++] In cmake, how can I test if the compiler is Clang?
The OGRE 3D engine source code uses the following check:
if (CMAKE_CXX_COMPILER MATCHES ".*clang") set(CMAKE_COMPILER_IS_CLANGXX 1) endif ()
We're trying out Clang, but I can't figure out how to test whether or not the compiler is Clang with our CMake script.