ROCm / rocm-cmake

CMake modules used within the ROCm libraries
https://rocm.docs.amd.com/projects/ROCmCMakeBuildTools/en/latest/
MIT License
62 stars 43 forks source link

CMAKE_INSTALL_<dir> paths assumed to be relative #121

Closed Madouura closed 4 months ago

Madouura commented 1 year ago

Please see: https://github.com/jtojnar/cmake-snips#assuming-cmake_install_dir-is-relative-path For context: https://github.com/ROCm-Developer-Tools/hipamd/issues/55

Here is an example: https://github.com/RadeonOpenCompute/rocm-cmake/blob/027404a8326da6e7e9338e0b81f9428660190724/share/rocm/cmake/ROCMInstallTargets.cmake#L87-L96 This assumes that CMAKE_INSTALL_<DIR> is relative, which is definitely not always the case.

cgmb commented 1 year ago

The PREFIX option is not used anymore, so the problem is further down. I should talk with @lawruble13 about this, since I don't fully understand the purpose of ROCMInstallTargets vs. the built-in CMake export and install. With the /opt/rocm file reorganization completed, I wonder if we might be able to simplify our build code for this functionality.

cgmb commented 1 year ago

I'm looking at my schedule for the next month and I'm not sure when I'm going to get a chance to really dig into this, so I'm marking this as help wanted. The problem is simple enough, but it's not immediately obvious to me how to fix this without breaking existing code.

nartmada commented 7 months ago

@Madouura, has this issue been fixed? Please close the ticket if the issue has been fixed. Thanks.

ppanchad-amd commented 4 months ago

@Madouura Closing ticket since there is no response. Please re-open if you still encounter this issue. Thanks!