google / googletest

GoogleTest - Google Testing and Mocking Framework
https://google.github.io/googletest/
BSD 3-Clause "New" or "Revised" License
34.96k stars 10.17k forks source link

Fix old versions of CMake erroneously reporting Intel LLVM as Clang #4541

Closed tobbi closed 6 months ago

tobbi commented 6 months ago

This adds a check for the specific edge case of CMAKE versions less than 3.20 reporting Intel LLVM compilers as Clang.

I've verified this using the steps described in #4315 and it works just fine.

Fixes #4315

derekmauro commented 6 months ago

Carrying a workaround for an unsupported platform is a maintenance burden. CMake itself doesn't even support this platform until 3.20. Here we are proposing working around an unsupported platform in a tool that doesn't support it either. Anyone serious about using CMake with IntelLLVM should just grab a copy of CMake that supports this.

tobbi commented 6 months ago

Maybe it would help closing the original issue as well? It really is discouraging when you fix an issue that you ("Google") supposedly need help with only to be met with this message.

derekmauro commented 6 months ago

Maybe it would help closing the original issue as well? It really is discouraging when you fix an issue that you ("Google") supposedly need help with only to be met with this message.

Sorry about that. I apologize for asking for help, but please realize that it wasn't until I saw your patch that I realized that it would have been best to just suggest upgrading CMake.