-
Notifications
You must be signed in to change notification settings - Fork 219
Remove boost dependency from pkg-config template file #210
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
Conversation
|
@ych, do you have to add boost manually on the link line? Maybe there's a flag in pkg-config to skip unknown .pc files instead of throwing an error? Our boost installs have .pc files for instance, but I think it's more of a company artifact than something standard. |
|
@accelerated If cppkafka really need Boost but Boost is not supported in pkg-config, it should put to Cflags field. (please refer https://people.freedesktop.org/~dbn/pkg-config-guide.html, "Cflags: The compiler flags specific to this package and any required libraries that don't support pkg-config.") But I try to find out where cppkafka using Boost, and I find out that Boost only is used in the example program for program options. pkg-config is a way to describe how to use the library, it does not need to include the library which only the example program used. |
|
@ych, in that case we have to bring back |
|
@accelerated ok, I only use ldd command to check executable files and library files, so I ignore the I add |
|
@ych, can you please fix the conflict so this can be merged? |
Boost not provide pkg-config file, so if execute 'pkg-config --exist cppkafka' command with boost dependency, user always gets non-zero return. And PKG_SEARCH_MODULE in cmake use the command to check the status of cppkafka. The boost dependency should be removed for general usage can be works.
|
Sorry, I did not notice the comment. The conflict should be fixed now. |
|
@accelerated are you good with this one? I don't use pkg-config so I'm not sure what are the implications of this. |
|
Yes I recently heard from another source that pkg_config if broken if used with cmake because of boost, so I say it should be removed. |
|
Perfect. Thanks @ych and @accelerated! |
Boost does not provide pkg-config file, so if execute
'pkg-config --exists cppkafka' command with boost dependency,
user always gets non-zero return. And PKG_SEARCH_MODULE in cmake
use the command to check the status of cppkafka.
The boost dependency should be removed for general usage can be works.