summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/IBMClang-CXX-DetermineCompiler.cmake
diff options
context:
space:
mode:
authorAaron Liu <hualilia@ca.ibm.com>2021-12-02 15:34:01 (GMT)
committerBrad King <brad.king@kitware.com>2022-01-27 14:38:01 (GMT)
commit6da99e671c59a5b5b4731020cc286bb873a8134e (patch)
tree72cf89744dd3bfcb047fc50c6de41533c59833f6 /Modules/Compiler/IBMClang-CXX-DetermineCompiler.cmake
parent28e90f9576fa5784408c03cf20bf172b20e418f0 (diff)
downloadCMake-6da99e671c59a5b5b4731020cc286bb873a8134e.zip
CMake-6da99e671c59a5b5b4731020cc286bb873a8134e.tar.gz
CMake-6da99e671c59a5b5b4731020cc286bb873a8134e.tar.bz2
IBMClang: Add support for IBM Open XL C/C++
Fixes: #22929
Diffstat (limited to 'Modules/Compiler/IBMClang-CXX-DetermineCompiler.cmake')
-rw-r--r--Modules/Compiler/IBMClang-CXX-DetermineCompiler.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/Compiler/IBMClang-CXX-DetermineCompiler.cmake b/Modules/Compiler/IBMClang-CXX-DetermineCompiler.cmake
new file mode 100644
index 0000000..623c8af
--- /dev/null
+++ b/Modules/Compiler/IBMClang-CXX-DetermineCompiler.cmake
@@ -0,0 +1,8 @@
+set(_compiler_id_pp_test "defined(__open_xl__) && defined(__clang__)")
+
+set(_compiler_id_version_compute "
+# define @PREFIX@COMPILER_VERSION_MAJOR @MACRO_DEC@(__open_xl_version__)
+# define @PREFIX@COMPILER_VERSION_MINOR @MACRO_DEC@(__open_xl_release__)
+# define @PREFIX@COMPILER_VERSION_PATCH @MACRO_DEC@(__open_xl_modification__)
+# define @PREFIX@COMPILER_VERSION_TWEAK @MACRO_DEC@(__open_xl_ptf_fix_level__)
+")