[Qbs] How to add -pthread option into projects? a bug in qbs ?
richard at weickelt.de
Thu Jul 4 09:52:10 CEST 2019
> How to add -pthread option into projects?
> cpp.cppFlags: ["-pthread"]
Try using cpp.cxxFlags or cpp.driverFlags instead. cpp.cppFlags has a
different meaning. See
> I encountered this error too when use qbs file generated by conan to add
> dependency of opencv 4.0.1 to my project.
This is a bug in the Conan Qbs generator which still exports compiler
options to cpp.cppFlags. See https://github.com/conan-io/conan/issues/4730
If you find the time to fix
that would be awesome. It's just two letters.
More information about the Qbs