summaryrefslogtreecommitdiff
path: root/Modules/Internal/CheckSourceCompiles.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Internal/CheckSourceCompiles.cmake')
-rw-r--r--Modules/Internal/CheckSourceCompiles.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/Internal/CheckSourceCompiles.cmake b/Modules/Internal/CheckSourceCompiles.cmake
index 3b2152ae54..8c3a41863f 100644
--- a/Modules/Internal/CheckSourceCompiles.cmake
+++ b/Modules/Internal/CheckSourceCompiles.cmake
@@ -22,6 +22,9 @@ function(CMAKE_CHECK_SOURCE_COMPILES _lang _source _var)
elseif(_lang STREQUAL "Fortran")
set(_lang_textual "Fortran")
set(_lang_ext "F90")
+ elseif(_lang STREQUAL "HIP")
+ set(_lang_textual "HIP")
+ set(_lang_ext "hip")
elseif(_lang STREQUAL "ISPC")
set(_lang_textual "ISPC")
set(_lang_ext "ispc")