summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-08-11 14:32:12 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-08-11 14:32:34 (GMT)
commit127d6b89f62af2b7a6ce536fcb8f5841fe412841 (patch)
treea1d5b2803bf9dceeba139fa25d3d7a8f44854a21
parent7317e3b150ad070dc6b920fa78bec1c3a2e39280 (diff)
parentec1e3729530339015ff6b1e0a0cc09b0786d19d3 (diff)
downloadCMake-127d6b89f62af2b7a6ce536fcb8f5841fe412841.zip
CMake-127d6b89f62af2b7a6ce536fcb8f5841fe412841.tar.gz
CMake-127d6b89f62af2b7a6ce536fcb8f5841fe412841.tar.bz2
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
-rw-r--r--Modules/CMakeCompilerIdDetection.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/CMakeCompilerIdDetection.cmake b/Modules/CMakeCompilerIdDetection.cmake
index 75d33e8..5fec06f 100644
--- a/Modules/CMakeCompilerIdDetection.cmake
+++ b/Modules/CMakeCompilerIdDetection.cmake
@@ -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")