Fix to .qmake.conf so MSVC compiler flags are only set on Windows

This commit is contained in:
Aruki 2017-07-12 00:17:42 -06:00
parent 0ffbaefcde
commit 097ab23687
1 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,9 @@
# CONFIG += PUBLIC_RELEASE
QMAKE_CXXFLAGS += /WX \ # Treat warnings as errors
/wd4267 # Disable C4267: conversion from 'size_t' to 'type', possible loss of data
win32: {
QMAKE_CXXFLAGS += /WX \ # Treat warnings as errors
/wd4267 # Disable C4267: conversion from 'size_t' to 'type', possible loss of data
}
BUILD_DIR = $$PWD/../build
EXTERNALS_DIR = $$PWD/../externals