CMakeDetermineCXXCompiler.cmake doesn't accept 'c++' as compiler name
The commit b12aec6c modify Modules/CMakeDetermineCXXCompiler.cmake
file with following changes:
- if (COMPILER_BASENAME MATCHES "^(.+-)(clan)?[gc]\\+\\+(-[0-9]+(\\.[0-9]+)*)?(-[^.]+)?(\\.exe)?$")
+ if (COMPILER_BASENAME MATCHES "^(.+-)?(clang\\+\\+|g\\+\\+|clang-cl)(-[0-9]+(\\.[0-9]+)*)?(-[^.]+)?(\\.exe)?$")
The old logic accept clang++ g++ c++ The new logic doesn't accept c++
It block our product, c++ should be add:
if (COMPILER_BASENAME MATCHES "^(.+-)?(clang\\+\\+|[gc]\\+\\+|clang-cl)(-[0-9]+(\\.[0-9]+)*)?(-[^.]+)?(\\.exe)?$")
Edited by Lihua Zhao