As seen in Homebrew/homebrew-core#297397 (comment)
RPATH works fine for Macos due to #953
but it fails on Linux, which prevents the inclusion of CTK in homebrew.
It would be great to have also RPATH automatically done in Linux.
See also the problem with the lib.so.0.1 being incompatible with lib.so, in the comments of the homebrew PR.
In the meanwhile the problem is solved by overriding the _LIB_DIR and CMAKE_DIR in homebrew
As seen in Homebrew/homebrew-core#297397 (comment)
RPATH works fine for Macos due to #953
but it fails on Linux, which prevents the inclusion of CTK in homebrew.
It would be great to have also RPATH automatically done in Linux.
See also the problem with the lib.so.0.1 being incompatible with lib.so, in the comments of the homebrew PR.
In the meanwhile the problem is solved by overriding the _LIB_DIR and CMAKE_DIR in homebrew