Open 0x1997 opened 8 years ago
Why did you close this bug? I think it's probably a good idea to add cross-dependency
support to pkg-config libraries since it only requires -L
and -l
flags.
@nirbheek As said on the wiki, the built-in generator is meant for basic use cases. And aside from boost, I also have a dependency on pthread. To add -pthread
to the CFlags
section, I'd better generate the pkg-config file manually with configure_files
.
The wiki says that, but it's not very friendly to users that they try the pkg-config module and then it doesn't work for many use-cases outside the trivial. It also requires them to know the exact format of the pkg-config file, which is an anti-pattern that Autotools encouraged and we shouldn't.
I think the pkg-config module should be fixed to work for 99% of cases, and we really should make it work better. But it's up to Jussi.
@nirbheek I agree. I'm totally open to a more powerful pkg-config generator.
+1; i need also libraries found with compiler.find_library (in my case math library)
Hi, having run into the problem of getting boost into a pig-config file recently myself, I was wondering if there has been any development on this?
Is there currently a way to extract the cflags and libs from the boost dependency object so I can add them to the extra_cflags
and libraries
options of generate()
.
Thanks!
For example
The error message is
Library argument not a library object.