-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
flatbuffers: conan v2 support #12702
flatbuffers: conan v2 support #12702
Conversation
tc.variables["CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS"] = True | ||
# Relocatable shared libs on Macos | ||
tc.cache_variables["CMAKE_POLICY_DEFAULT_CMP0042"] = "NEW" |
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.
What do you think the advice should be for deciding on using cache variables
? The conan docs are not the most intuitive
I want to say
anything that needs to be set before the call to
project
orcmake_min_version
but that's not super obvious -- so my current train of thought is
whenever you use set a
CMAKE_
prefixed var
I havent seen any downside yet but Looking for a second opinion 🙏
tc.variables["CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS"] = True | |
# Relocatable shared libs on Macos | |
tc.cache_variables["CMAKE_POLICY_DEFAULT_CMP0042"] = "NEW" | |
tc.cache_variables["CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS"] = True | |
# Relocatable shared libs on Macos | |
tc.cache_variables["CMAKE_POLICY_DEFAULT_CMP0042"] = "NEW" |
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.
I've described some cases in a conan issue conan-io/conan#11937 (comment)
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.
Thank you for the link!
All green in build 1 (
|
Hi - I just picked up this change in my fork of CCI and ran into issues when I tried to build with Conan 1.52.
The problem is that none of the CMake variables are set in
(I've added the 2.0.7 and 2.0.8 sources to my fork's Thanks, |
It's specific to these new versions of flatbuffers (not in CCI), so it's unrelated to conan 1.52 and conan center. flatbuffers 2.0.5 recipe works fine. It's a consequence of google/flatbuffers@0471fa8, so will start to see such error if we package flatbuffers >= 2.0.7. And the fix is to inject VERSION_MAJOR etc with |
That worked - thanks!
|
This patch broke the compilation for Android armv8 ...
Why on earth is adding |
#12795 fixes it. |
Specify library name and version: lib/1.0
This is also a good place to share with all of us why you are submitting this PR (specially if it is a new addition to ConanCenter): is it a dependency of other libraries you want to package? Are you the author of the library? Thanks!