-
Notifications
You must be signed in to change notification settings - Fork 1.6k
macos cmake build install_name
missing @rpath or abspath
#4823
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
Comments
The cmake build was a later addition and may still be missing some details of the gmake one. I take it the toplevel CMakeLists.txt is currently lacking the |
CMake can take of it. One just needs to add something like
https://cmake.org/cmake/help/latest/variable/CMAKE_INSTALL_NAME_DIR.html edit: Actually, I think setting |
@martin-frbg to me it makes more sense to bump the minimum cmake version to 3 (maybe 3.5?) so you get MACOSX_RPATH by default. See #4848. Notice that CMake 3.19 already complains about OpenBLAS's cmake minimum version being too old. Also notice that CMake 3 was released over a decade ago.
Otherwise the "better" fix would have been cmake_policy(SET CMP0042 NEW) |
When building openblas with cmake, I am seeing that the dylib on macos only has the dylib name as its install_name. Therefore, linking applications struggle to use this binary.
Makefile built seems fine, likely by design.
I am wondering if this is an expected behaviour?
The text was updated successfully, but these errors were encountered: