Fix check for ICU on MinGW
Newer ICU versions do not generate a .lib file any more ... Also the check doesn't take e.g. static debug builds into account. Instead of trying to enumerate all possible variations, just rely on the header check. That's what we're doing for the other libs, too. Change-Id: Idc0527f0e8ad90f298337d4ab635c7aa6a35c351 Reviewed-by: Jonathan Liu <net147@gmail.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
parent
e658f70b85
commit
c584f3d9a8
@ -2103,9 +2103,7 @@ bool Configure::checkAvailability(const QString &part)
|
||||
available = findFile("pcre.h");
|
||||
|
||||
else if (part == "ICU")
|
||||
available = findFile("unicode/utypes.h") && findFile("unicode/ucol.h") && findFile("unicode/ustring.h")
|
||||
&& (findFile("icuin.lib") || findFile("sicuin.lib")
|
||||
|| findFile("libicuin.lib") || findFile("libsicuin.lib")); // "lib" prefix for mingw, 's' prefix for static
|
||||
available = findFile("unicode/utypes.h") && findFile("unicode/ucol.h") && findFile("unicode/ustring.h");
|
||||
|
||||
else if (part == "ANGLE") {
|
||||
available = checkAngleAvailability();
|
||||
|
Loading…
x
Reference in New Issue
Block a user