Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: ThrustInstallRules.cmake doesn't support when CMAKE_INSTALL_LIBDIR is an absolute value #1390

Closed
1 task done
robertmaynard opened this issue Feb 15, 2024 · 0 comments · Fixed by #1393
Closed
1 task done
Labels
bug Something isn't working right.

Comments

@robertmaynard
Copy link
Contributor

Is this a duplicate?

Type of Bug

Something else

Component

Thrust

Describe the bug

When CMAKE_INSTALL_LIBDIR is an absolute value the compuations that ThrustInstallRules.cmake does to figure out the relative location of the includes fails.

How to Reproduce

Pass -DCMAKE_INSTALL_LIBDIR=${CMAKE_INSTALL_PREFIX}/lib on the command line

Expected behavior

When CMAKE_INSTALL_PREFIX is a parent directory of CMAKE_INSTALL_LIBDIR it should be possible to compute the correct relative association.

It is impossible to always support absolute CMAKE_INSTALL_LIBDIR values, since the CMAKE_INSTALL_PREFIX can be rewritten at install time when using cmake --install <dir> --prefix <path> or the entire install tree can be relocated ( e.g. a package manager ).

Reproduction link

No response

Operating System

No response

nvidia-smi output

No response

NVCC version

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working right.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant