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

removed canary boost.system library after check #155

Closed
wants to merge 1 commit into from
Closed

removed canary boost.system library after check #155

wants to merge 1 commit into from

Conversation

wrightleft
Copy link

When using the find_package(Wt REQUIRED) method of depending on Wt, the boost.system library's absolute path from where Wt was compiled at was found to be a dependency.

This was a result of the check added for optionally including the system component depending on the version of the Boost library. The check would set the Boost_SYSTEM_LIBRARY to an absolute path, and on version 1.69 of the Boost library, that absolute path would not be transformed to the import target, but would leak into the BOOST_WT_LIBRARIES and BOOST_WTHTTP_LIBRARIES variables.

Clearing the Boost_SYSTEM_LIBRARY variable after the check, solves this problem, though all of the variables that the check sets should be cleared. That is difficult though.

@emweb
Copy link
Collaborator

emweb commented Jun 12, 2019

How about doing it scoped in a function? Do you notice any problems with that?

scoped_find_boost_system.patch.txt

Regards,
Roel

emweb pushed a commit that referenced this pull request Jun 12, 2019
@emweb
Copy link
Collaborator

emweb commented Jun 12, 2019

That last commit (42386ae) should fix it. If there's an issue anyway, feel free to comment.

Regards,
Roel

@emweb emweb closed this Jun 12, 2019
@wrightleft
Copy link
Author

Looks like that should do the trick. It makes sure that the find_package call can't accidentally leak anything else.

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