Handle MSVC++ x64

This commit is contained in:
Tvangeste 2013-08-11 09:30:43 +02:00
parent bb8f14ed9d
commit b254127b3a

View file

@ -40,11 +40,17 @@ win32 {
win32-msvc* {
VERSION = 1.5.0 # More complicated things cause errors during compilation under MSVC++
DEFINES += __WIN32 _CRT_SECURE_NO_WARNINGS
contains(QMAKE_TARGET.arch, x86_64) {
DEFINES += NOMINMAX __WIN64
LIBS += -L$${PWD}/winlibs/lib/msvc/x64
} else {
LIBS += -L$${PWD}/winlibs/lib/msvc
}
QMAKE_CXXFLAGS += /wd4290 # silence the warning C4290: C++ exception specification ignored
QMAKE_LFLAGS_RELEASE += /LTCG /OPT:REF /OPT:ICF
QMAKE_CXXFLAGS_RELEASE += /GL
# QMAKE_CXXFLAGS_RELEASE += /GL # slows down the linking significantly
LIBS += -lshell32 -luser32 -lsapi -lole32 -lhunspell
LIBS += -L$${PWD}/winlibs/lib/msvc
HUNSPELL_LIB = hunspell
} else {
LIBS += -lhunspell-1.3.2
LIBS += -L$${PWD}/winlibs/lib