isEmpty() does not work with a variable
-
Hi, I have a file
lib_template.priisEmpty(NAME) { error(NAME must be set before including the file) } TEMPLATE = lib CONFIG += static TARGET = $$NAME INCLUDEPATH += \ $$PWD \it is supposed to be used in the manner
NAME = lib_name include($$qmake_scripts_dir/lib_template.pri)isEmpty(...)always shows error as ifNAMEnever defined
What is the problem? -
Hi
QMake scope rules is a bit surprising at times.try the test as
isEmpty(NAME) { error(NAME must be set before including the file) }
(as a one liner ) -
Hi
QMake scope rules is a bit surprising at times.try the test as
isEmpty(NAME) { error(NAME must be set before including the file) }
(as a one liner )