-
Notifications
You must be signed in to change notification settings - Fork 16
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
[Windows] It is nice YAML_CPP_DLL is exported by default. #10
Comments
@seanyen Please provide a pull request to add the necessary definition to the |
Please also describe your exact steps when you run into problem since afaik we are currently able to use this package as is on Windows without problems. |
Thanks for the pointer. I will be looking how to export it from |
So everything works fine atm but you propose a change in order to be able to remove these workarounds in other packages. That wasn't clear from the original description. Sounds good to me. Please also make pull requests for the referenced packages so that it can be checked that the to-be-proposed change makes today workarounds obsolete. |
Are you still picking this up @seanyen ? |
@seanyen Friendly ping. |
Bumping. I also ran into this issue; I had to add |
@clalancette I see #30 and #31 haven't been merged yet. Are there plans to merge them or is something holding them up? |
Circling back here, it's not clear that #25 actually resolved this issue since removing the YAML_CPP_DLL patches in connected PRs results in a build failure. Connected PRs: Maybe there's something else missing in the downstream packages. |
On Windows, the
yaml-cpp
is built as shared libraries. In such case,YAML_CPP_DLL
is required to define to correctly consume theyaml-cpp
(otherwise, visibility decoration won't be defined and it results in linkage time error).And currently every project consuming
yaml-cpp
will need to define it in their CMake project to enable Windows build. It would be nice to see this exported directly from this package and all the downstream project can get the definition for free.UPDATED:
For example,
And I discovered this issue when I try to enable navigation2 on Windows.
The text was updated successfully, but these errors were encountered: