Qmake cannot evaluate the correct variable

I want to share my version of the assembly in the application, but I cannot get this to work ... this is part of my .pro file ...

LITERAL_HASH = "foo"; BUILD = "$${LITERAL_HASH}{\"sexy Installer\"},(0x12345678),1,0,3"; DEPLOYMENT.installer_header = $$(BUILD); message(bar .$$(BUILD).) 

and when I run qmake from the Qt menu, the output is:

 Project MESSAGE: bar .. 

I do everything according to the docs, and yet this variable seems empty ...

+3
source share
1 answer

Use $${BUILD} instead of $$(BUILD) . The $() operator refers to environment variables, not .pro file variables.

+9
source

Source: https://habr.com/ru/post/1342367/


All Articles