HIP: Limit compiler id candidates to those supporting HIP

Currently we only support using Clang for HIP.

Issue: #25143
This commit is contained in:
Brad King
2023-08-10 14:26:19 -04:00
parent 1368e219d9
commit ec1e372953

View File

@@ -102,6 +102,10 @@ function(compiler_id_detection outvar lang)
set(ordered_compilers NVIDIA Clang)
endif()
if("x${lang}" STREQUAL "xHIP")
set(ordered_compilers Clang)
endif()
if(CID_ID_DEFINE)
foreach(Id ${ordered_compilers})
string(APPEND CMAKE_${lang}_COMPILER_ID_CONTENT "# define ${CID_PREFIX}COMPILER_IS_${Id} 0\n")