开发者

qmake can't evaluate a proper variable

开发者 https://www.devze.com 2023-01-25 22:52 出处:网络
I\'d like to share my build version in the app but I can\'t get that thing to work... this is a part of my .pro file...

I'd like to share my build version in the app but I can't get that thing to work... this is a part of my .pro file...

LITERAL_HASH = "foo";
BUILD = "$${LITERAL_HASH}{\"sexy Installer\"},(0x12开发者_如何学编程345678),1,0,3";
DEPLOYMENT.installer_header = $$(BUILD);

message(bar .$$(BUILD).)

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

Project MESSAGE: bar ..

I'm doing everything according to the docs and still that variable seems to be empty...


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

0

精彩评论

暂无评论...
验证码 换一张
取 消