From c0a754b148dbc43ce950d11a1c6879c36df2a3f5 Mon Sep 17 00:00:00 2001 From: Yaxun Sam Liu Date: Fri, 17 May 2019 09:52:43 -0400 Subject: [PATCH] Fix build failure due to hiprtc for HIP-Clang [ROCm/clr commit: d088a8c23bd6b1a21135fddb00cd8b997e462685] --- projects/clr/hipamd/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/projects/clr/hipamd/CMakeLists.txt b/projects/clr/hipamd/CMakeLists.txt index 30a699c7ce..ba855ad86b 100644 --- a/projects/clr/hipamd/CMakeLists.txt +++ b/projects/clr/hipamd/CMakeLists.txt @@ -303,7 +303,11 @@ endif() ############################# # Install hip_hcc if platform is hcc if(HIP_PLATFORM STREQUAL "hcc") - install(TARGETS hip_hcc_static hip_hcc hiprtc DESTINATION lib) + if(HIP_COMPILER STREQUAL "hcc") + install(TARGETS hip_hcc_static hip_hcc hiprtc DESTINATION lib) + else() + install(TARGETS hip_hcc_static hip_hcc DESTINATION lib) + endif() # Install .hipInfo install(FILES ${PROJECT_BINARY_DIR}/.hipInfo DESTINATION lib)