PDA

View Full Version : qmake exists() function



roxton
28th December 2008, 12:56
Hello! I have Qt 4.4.3 on Linux. And I've discover a strange thing. The following code in my .pro-file doesn't work right anymore:


exists ("/usr/include/aspell.h")
{
message( "ASpell enabled" )
LIBS += -laspell
DEFINES += ASPELL_ENABLE
}


As far I see, currently exists() returns true in ANY case - with aspell.h presented or not. The same thing for other files those I'm trying to check:


exists (subpop.h)
{
message( "foo bar is here" )
}

roxton
28th December 2008, 19:43
update: it works fine when the "{" is after the condition, i.e.:

exists("/usr/include/aspell.h") {