CMAKE_CXX_COMPILER_ID for XLClang
Platform: Summit (OLCF)
CMake: 3.17.3
XL: 16.1.1-7
When configuring a project with XLClang, e.g. via CXX=$(which xlc++) CC=$(which xlc) cmake
, the output of CMake correctly states
-- The C compiler identification is XLClang 16.1.1.7
-- The CXX compiler identification is XLClang 16.1.1.7
for the C
and CXX
identification but the variable CMAKE_CXX_COMPILER_ID
accessible in a CMake script is still set to XL
instead of XLClang
.
Oh wait, just discovered: https://cmake.org/cmake/help/v3.15/policy/CMP0089.html
Unlike most policies, CMake version 3.15.7 does not warn by default when this policy is not set and simply uses OLD behavior.
Edited by Axel Huebl