Improve Windows XP and Vista styles auto detection
Do not build windows styles when the target platform is not Windows. This makes a difference when cross-compiling. Change-Id: I2184d39ed253af1069c5cdcd6a848611cff24789 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
parent
80749d946b
commit
6715c4fb2e
@ -1980,7 +1980,7 @@ bool Configure::checkAvailability(const QString &part)
|
||||
{
|
||||
bool available = false;
|
||||
if (part == "STYLE_WINDOWSXP")
|
||||
available = findFile("uxtheme.h");
|
||||
available = (platform() == WINDOWS) && findFile("uxtheme.h");
|
||||
|
||||
else if (part == "ZLIB")
|
||||
available = findFile("zlib.h");
|
||||
|
Loading…
Reference in New Issue
Block a user