[feature suggestion - CMAKE_CXX_COMPILER] add check for clang++ binary path
this is on the heels of #21493 (closed)
where CMAKE_CXX_COMPILER=/usr/lib/llvm-11/bin/clang
been declared whilst it should have been CMAKE_CXX_COMPILER=/usr/lib/llvm-11/bin/clang++
seeing that the compiler's frontend binary is the same for C and C++
# stat /usr/lib/llvm-11/bin/clang++
File: /usr/lib/llvm-11/bin/clang++ -> clang
Size: 5 Blocks: 0 IO Block: 4096 symbolic link
it could lead to a situation as mentioned in the cited issue. I had a discussion at some other place and was to understand that I am not the only one that made this mistake, hence it perhaps would be viable addition to implement such check.