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

Silence deprecation warn #6490

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

henczati
Copy link

@henczati henczati commented Aug 4, 2018

Handle CMP0022: INTERFACE_LINK_LIBRARIES vs LINK_INTERFACE_LIBRARIES

@Noiredd
Copy link
Member

Noiredd commented Aug 21, 2018

This policy only silences the warning and this is some approach, but maybe we could figure out why does it even come up? The warning says Target "caffe" has an INTERFACE_LINK_LIBRARIES property which differs from its LINK_INTERFACE_LIBRARIES properties. I checked and the difference is about libprotobuf.so.
INTERFACE_LINK_LIBRARIES:
$<$<NOT:$<CONFIG:DEBUG>>:/usr/local/lib/libprotobuf.so>
$<$<CONFIG:DEBUG>:/usr/local/lib/libprotobuf.so>
LINK_INTERFACE_LIBRARIES:
/usr/local/lib/libprotobuf.so

Why does the difference arise in the first place?

@henczati
Copy link
Author

Don't have time to attend to this now, but my impression at the time was that either both variables were kept for backward compatibility and the old one was improperly maintained or the old one was left in the code by accident.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants