From b80bd6e21c4aae272c991072b135e42261be764b Mon Sep 17 00:00:00 2001 From: Vladislav Sytchenko Date: Mon, 19 Jul 2021 19:30:41 -0400 Subject: [PATCH] SWDEV-286884 - Correct hiprtc installation on Windows Generated .lib binary should go into the lib/ folder. Change-Id: I552552745457368dc48f3a4b727a731a6bea822b [ROCm/clr commit: f9732d7f20f21d645e3d52a00888f45871a5d6d4] --- projects/clr/hipamd/src/CMakeLists.txt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/projects/clr/hipamd/src/CMakeLists.txt b/projects/clr/hipamd/src/CMakeLists.txt index 59392f7631..84ecdb5eab 100755 --- a/projects/clr/hipamd/src/CMakeLists.txt +++ b/projects/clr/hipamd/src/CMakeLists.txt @@ -238,12 +238,10 @@ if(__HIP_ENABLE_RTC) target_link_libraries(amdhip64 PRIVATE ${HIPRTC_GEN_OBJ}) target_compile_definitions(amdhip64 PRIVATE __HIP_ENABLE_RTC) add_dependencies(amdhip64 hiprtc-builtins) - # Windows will install the library to the bin directory instead. - if(WIN32) - install(TARGETS hiprtc-builtins DESTINATION ${CMAKE_INSTALL_BINDIR}) - else() - install(TARGETS hiprtc-builtins DESTINATION lib) - endif() + install(TARGETS hiprtc-builtins + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + LIBRARY DESTINATION lib + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) endif() #############################