-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Latest change result in dll.h not found error #1036
Comments
same here |
@manoj-freyr build with tag=yaml-cpp-0.7.0 could avoid the recent update |
Could you post the full error message please? |
Context: I am using yaml-cpp as external project via ExternalProject_Add(). Earlier dll.h was part of source tree in include/yaml-cpp/dll.h and references in the my own client code pointed to #include<yaml-cpp/dll.h> . My include_directories() was having yaml-src/include. And all worked well. With latest change, the dll.h will be created in build/include/yaml-cpp folder. This breaks my code build unless I add build/include/yaml-cpp to include_directories(). PS: Adding build/include/yaml-cpp to include_directories() fixes the error. Is this right enough way? |
I'm honestly not sure. I reverted the PR that broke this, and asked the original author to figure out the issue. If you'd like to help as well, please do :) |
Now
Since you embed yaml-cpp (via |
Also, forgot to ask: please provide full references to your sources. Without them, it is hard to debug why it fails by only a "this commit breaks, here is a single line error string". |
Thanks for the explanation, @pinotree. It sounds like the original PR was correct, but may break end-users who had misconfigured setups (e.g. using If so, I think resubmitting the change is fine, and it would be nice to add some documentation in the README about how to include |
Can you please describe exactly how you use |
With recent changes , da1c8d3, removing dll.h from the source code and using generate_export_header to generate dll.h is not working as it fails to generate dll.h and I am erroring out with errors in my main CMakeList with,
fatal error: 'yaml-cpp/dll.h' file not found
#include "yaml-cpp/dll.h"
The text was updated successfully, but these errors were encountered: