From 2a9f277df7525539562e7b8dffb611c981c7d9f6 Mon Sep 17 00:00:00 2001 From: Artur Wojcik Date: Wed, 11 Sep 2024 11:37:10 +0200 Subject: [PATCH] Restore previous rocm_install_targets behavior on Windows --- share/rocmcmakebuildtools/cmake/ROCMInstallTargets.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/share/rocmcmakebuildtools/cmake/ROCMInstallTargets.cmake b/share/rocmcmakebuildtools/cmake/ROCMInstallTargets.cmake index 72fdb3bb..304211ba 100644 --- a/share/rocmcmakebuildtools/cmake/ROCMInstallTargets.cmake +++ b/share/rocmcmakebuildtools/cmake/ROCMInstallTargets.cmake @@ -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)