mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 14:23:10 -05:00
Merge topic 'hip-compiler-id'
ec1e372953 HIP: Limit compiler id candidates to those supporting HIP
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8704
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user