Skip to content

Commit

Permalink
Restore previous rocm_install_targets behavior on Windows (#213)
Browse files Browse the repository at this point in the history
On Windows, DLLs must be in an application's runtime directory unless
loaded at runtime by the full path. There is no RPATH on Windows.
  • Loading branch information
apwojcik authored Sep 3, 2024
1 parent d27d809 commit 654a023
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion share/rocmcmakebuildtools/cmake/ROCMInstallTargets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ function(rocm_install_targets)
set(EXPORT_FILE ${PARSE_EXPORT})
endif()

if(PARSE_PREFIX)
if(WIN32)
set(BIN_INSTALL_DIR ${CMAKE_INSTALL_BINDIR})
set(LIB_INSTALL_DIR ${ROCM_INSTALL_LIBDIR})
set(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_INCLUDEDIR})
elseif(PARSE_PREFIX)
set(PREFIX_DIR ${PARSE_PREFIX})
if(PARSE_PRIVATE)
set(BIN_INSTALL_DIR ${PARSE_PREFIX}/${ROCM_INSTALL_LIBDIR}/${PROJECT_NAME}/bin)
Expand Down

0 comments on commit 654a023

Please sign in to comment.