-
Notifications
You must be signed in to change notification settings - Fork 161
Update & Fix conanfile #208
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
base: master
Are you sure you want to change the base?
Conversation
|
Thank you @robinchrist. The changes look like they make sense. I will try to look at it this week. |
artem-ogre
left a 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.
Mostly looks good, thank you for the effort.
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.
Should we add required_conan_version?
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.
Probably a good idea.
|
Please rebase on top of the master. |
The conan file sets tc.cache_variables[CDT_USE_AS_COMPILED_LIBRARY], however this leads to issues because this define is not included if CDT is consumed as a dependency Additionally, the conan file used several old-style conan practices
…generator anymore
…conan center at time of writing
…ge and native CMake package The native CMake package uses CDT::CDT The autogenerated conan CMake library alias is cdt::cdt Force the library alias to CDT::CDT for backwards compat and consistency
|
Thanks for the changes! I will look at them when I get some spare time. |
The conan file used several old-style conan practices and has some issues.
The following changes were made:
CDT_USE_AS_COMPILED_LIBRARY: The conan file setstc.cache_variables[CDT_USE_AS_COMPILED_LIBRARY], however this leads to issues because this define is not included if CDT is consumed as a dependency. It must be set inpackage_infocpp_info.defines.appendshared,header_onlyandfPIC(This style is considered best practice and enforced for conan center recipes)I'm definitely not a conan expert, but do have some experience with it. While this conan file may not be perfect (conan experts to the rescue), it is definitely a step forward.