-
Notifications
You must be signed in to change notification settings - Fork 23
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
Support installing imported targets #420
Comments
Hello @aminya, thanks for the feedback!
This is the case, and I think it is actually due to CMake not being able to install However, if you need to install |
Hi, thanks for the explanation. My use-case is wrapping a pre-built library generated by another build system so it can be used from CMake. The one way CMake allows defining such libraries is imported targets. I have given an example here in the pull request description under the "How to test" section: |
Hi, I am the developer of project options that uses
install_basic_package_files
from ycm internally for itspackage_project
functionality.I have noticed that ycm fails to install
IMPORTED
targets. I have written a patch that detects such imported targets and installs them as aFILE
instead of aTARGET
.However, this still fails when calling the
export
function. This is because when theinstall(TARGETS ... EXPORT ...)
is not called, no export exists.I am wondering if we can handle this corner case.
See this for more information
The text was updated successfully, but these errors were encountered: