[Qbs] (no subject)

Christian Kandeler christian.kandeler at qt.io
Tue Apr 6 13:06:29 CEST 2021

On 4/6/21 10:58 AM, Dan Pat wrote:
> Hello. A bunch of Products must be built using a certain set of "cpp" 
> flags. I created a special Module (later referred to as "CppFlags"") 
> containing those flags and had these Products depend upon CppFlags. 
> There are other Modules that the Products depend on, and some of these 
> Modules contain Rules that generate cpp files, which also must be 
> built using the above mentioned set of "cpp" flags. But it seems that 
> since such generator Modules do not explicitly depend on CppFlags, 
> they do not pick up the required flags. So the question is how do I 
> make sure that a certain set of flags is applied to any cpp file built 
> in the context of a Product?
If you really assign to cpp properties in your flags module, then these 
values should be visible anywhere in the product, as there is only one 
instance of the cpp module. If they are not, you'll need to provide a 
complete minimal variant of your project, so we can see what is going on.


More information about the Qbs mailing list