Fixed warning.pri for CollectionTest and TranslationsTest libraries.
--HG-- branch : develop
This commit is contained in:
parent
69e0ff74e6
commit
305cbe8acb
|
@ -50,16 +50,9 @@ HEADERS += \
|
|||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||
$$enable_ccache()
|
||||
|
||||
CONFIG(debug, debug|release){
|
||||
# Debug mode
|
||||
unix {
|
||||
include(warnings.pri)
|
||||
} else {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
}
|
||||
}
|
||||
}else{
|
||||
|
||||
CONFIG(release, debug|release){
|
||||
# Release mode
|
||||
!win32-msvc*:CONFIG += silent
|
||||
DEFINES += V_NO_ASSERT
|
||||
|
@ -67,10 +60,6 @@ CONFIG(debug, debug|release){
|
|||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||
}
|
||||
|
||||
checkWarnings{
|
||||
unix:include(warnings.pri)
|
||||
}
|
||||
|
||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||
# do nothing
|
||||
} else {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#Turn on compilers warnings.
|
||||
unix {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
|
@ -47,3 +48,20 @@ clang*{
|
|||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
} else { # Windows
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
|
||||
win32-msvc*{
|
||||
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -WX
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -54,16 +54,9 @@ $$enable_ccache()
|
|||
|
||||
DEFINES += TS_DIR=\\\"$${PWD}/../../../share/translations\\\"
|
||||
|
||||
CONFIG(debug, debug|release){
|
||||
# Debug mode
|
||||
unix {
|
||||
include(warnings.pri)
|
||||
} else {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
}
|
||||
}
|
||||
}else{
|
||||
|
||||
CONFIG(release, debug|release){
|
||||
# Release mode
|
||||
!win32-msvc*:CONFIG += silent
|
||||
DEFINES += V_NO_ASSERT
|
||||
|
@ -71,10 +64,6 @@ CONFIG(debug, debug|release){
|
|||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||
}
|
||||
|
||||
checkWarnings{
|
||||
unix:include(warnings.pri)
|
||||
}
|
||||
|
||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||
# do nothing
|
||||
} else {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#Turn on compilers warnings.
|
||||
unix {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
|
@ -47,3 +48,20 @@ clang*{
|
|||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
} else { # Windows
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
|
||||
win32-msvc*{
|
||||
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -WX
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user