Changed check for MSYS2 environment for Windows compile

This commit is contained in:
thunder2 2016-08-14 14:11:01 +02:00
parent b0b4320c0b
commit f1847a954f
2 changed files with 11 additions and 17 deletions

View file

@ -91,14 +91,13 @@ win32 {
#Have to reorder libs, else got /libs/lib/libcrypto.a(bio_lib.o):bio_lib.c:(.text+0x0): multiple definition of `BIO_new'
LIBS = -lcurl -lxml2 -lz -lxslt -lws2_32 -lwldap32 -lssl -lcrypto -lgdi32 $${LIBS}
exists(C:/msys32/mingw32/include) {
message(msys2 xml2 is installed.)
INC_DIR += "C:/msys32/mingw32/include/libxml2"
}
exists(C:/msys64/mingw32/include) {
message(msys2 xml2 is installed.)
INC_DIR += "C:/msys64/mingw32/include/libxml2"
# Check for msys2
!isEmpty(PREFIX_MSYS2) {
message(Use msys2 xml2.)
INC_DIR += "$${PREFIX_MSYS2}/include/libxml2"
}
DEPENDPATH += . $$INC_DIR
INCLUDEPATH += . $$INC_DIR
}