Stephen Kelly wrote: > Could this be because it is old clang which did not define __clang__? > > Apart from the misidentification, I don't understand how the > WriteCompilerDetectionHeader test could have a different result than the > compiler identification code. It should be checking the same defines in > the same order, and it should arrive at the same incorrect conclusion that > the compiler is GNU.
That machine seems to partly be using llvm-gcc. At least that is what is used for the identification step, which is why it identifies as GNU. After the identification step (when building), clang is used, which is why my test fails. I conditionalized the test execution to exclude APPLE, which is fine for now. It's the same condition in GNU-CXX.cmake, and I introduced it exactly for this reason of excluding platforms from these features from platforms that cause problems until the features themselves are in. Thanks, Steve. -- 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/cgi-bin/mailman/listinfo/cmake-developers