summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/ROCMClang-OBJCXX.cmake
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2020-08-28 19:00:57 (GMT)
committerZack Galbreath <zack.galbreath@kitware.com>2021-06-07 19:25:28 (GMT)
commitbd844387df133897ce6e3f290af771acb0df4df9 (patch)
treeb83613e9d2eb1d67184d658201d8758c1e980298 /Modules/Compiler/ROCMClang-OBJCXX.cmake
parent590553f32246b374853c50cf7c30af3880ac02ea (diff)
downloadCMake-bd844387df133897ce6e3f290af771acb0df4df9.zip
CMake-bd844387df133897ce6e3f290af771acb0df4df9.tar.gz
CMake-bd844387df133897ce6e3f290af771acb0df4df9.tar.bz2
ROCMClang: Add the ROCm toolkit derived clang compiler to CMake
Diffstat (limited to 'Modules/Compiler/ROCMClang-OBJCXX.cmake')
-rw-r--r--Modules/Compiler/ROCMClang-OBJCXX.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/Compiler/ROCMClang-OBJCXX.cmake b/Modules/Compiler/ROCMClang-OBJCXX.cmake
new file mode 100644
index 0000000..82238e1
--- /dev/null
+++ b/Modules/Compiler/ROCMClang-OBJCXX.cmake
@@ -0,0 +1,7 @@
+include(Compiler/ROCMClang)
+__compiler_rocmclang(OBJCXX)
+
+set(_rocm_clang_ver "${CMAKE_OBJCXX_COMPILER_VERSION_INTERNAL}")
+set(CMAKE_OBJCXX_COMPILER_VERSION "${CMAKE_OBJCXX_COMPILER_VERSION_INTERNAL}")
+include(Compiler/Clang-OBJCXX)
+set(CMAKE_OBJCXX_COMPILER_VERSION "${_rocm_clang_ver}")