-
Notifications
You must be signed in to change notification settings - Fork 757
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
cmake: correctly include yaml-cpp #3558
Conversation
Include its dirs last for libsclang, and use the YAMLCPP_LIBRARY variable for linking
AFAICT I can correctly build with SYSTEM_YAMLCPP on or off now. I'm cleaning in between each build & reconfigure. I feel a bit weird about setting the YAMLCPP_LIBRARY and YAMLCPP_INCLUDE_DIR options like this; it reduces complexity in other areas though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work as intended. I could build with both -DSYSTEM_YAMLCPP=on and -DSYSTEM_YAMLCPP=off. Thanks for the quick fix!
Great, I'm glad it works! |
@dvzrv reported also that this works (#3557 (comment)). I think this is OK to merge now. |
Hmm, was this not included in 3.9.2? |
Seems it didn't make it yet. |
This was merged into the 'develop' branch and will be included in SC 3.10. |
@patrickdupuis thanks. I'll keep the patches around for a little longer then ;-) |
Include its dirs last for libsclang, and use the YAMLCPP_LIBRARY variable for linking.
Fixes #3557.
cc @Apteryks. This works for me on macOS, using v0.6.1 of yaml-cpp.
Edit - oops, think I broke linking when SYSTEM_YAMLCPP=OFF. will keep investigating.