-
Notifications
You must be signed in to change notification settings - Fork 29
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
Unable to install Rust Library targets #10
Comments
I can try looking into this myself sometime soon but I'm not sure how much progress I'll be able to make on it. |
Hi Nathan, thanks for the report. I first tested your minimized case with cmake 3.12.1, it prints the following error:
I get your error with both cmake 3.13 and from the cmake git master branch. There is an open issue (https://gitlab.kitware.com/cmake/cmake/issues/18791) with this exact error message. Unless @awakecoding has an idea what the issue could be, this is probably an issue that has to be fixed upstream. |
Based on quickly looking over the CMake issue, that definitely does seem to be like an upstream issue. That being said, is it within the scope of this project to make Rust libraries installable? I would like to be able to install Rust libraries via CMake1 but I understand if that isn't something you wish to support. 1: Really, I want to be able to |
We currently define an imported cmake target with the library file, but cmake unfortunately forbids the installation of imported targets. The proper way to fix this would be to figure out a way to create the target without defining it as IMPORTED, which could be tricky: https://github.com/Devolutions/CMakeRust/blob/master/cmake/CMakeCargo.cmake#L67 |
I'm not sure if this is beyond the scope of this project.
Trying to install a Rust library as part of a CMake project does not work. A (relatively) minimal example can be found here, where CMake crashes with the following message:
I have the following environment:
The text was updated successfully, but these errors were encountered: