From 21c179755b47173795036fdfd96b60cdf7428b6d 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 --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 30a699c7ce..ba855ad86b 100644 --- a/CMakeLists.txt +++ b/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)