forked from qt-creator/qt-creator
Sqlite: Disable compiler warnings for 3rdparty sources
Change-Id: Id4fb3ca1c051b54d4bf449a11adff8c1492fc980 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
set(SQLITE_SOURCES
|
||||||
|
../3rdparty/sqlite/sqlite3.c
|
||||||
|
../3rdparty/sqlite/sqlite3.h
|
||||||
|
../3rdparty/sqlite/carray.c
|
||||||
|
../3rdparty/sqlite/config.h
|
||||||
|
../3rdparty/sqlite/sqlite.h
|
||||||
|
)
|
||||||
|
|
||||||
add_qtc_library(Sqlite
|
add_qtc_library(Sqlite
|
||||||
PROPERTIES AUTOMOC OFF AUTOUIC OFF
|
PROPERTIES AUTOMOC OFF AUTOUIC OFF
|
||||||
PUBLIC_DEFINES
|
PUBLIC_DEFINES
|
||||||
@@ -7,11 +15,7 @@ add_qtc_library(Sqlite
|
|||||||
"${CMAKE_CURRENT_LIST_DIR}"
|
"${CMAKE_CURRENT_LIST_DIR}"
|
||||||
../3rdparty/sqlite
|
../3rdparty/sqlite
|
||||||
SOURCES
|
SOURCES
|
||||||
../3rdparty/sqlite/sqlite3.c
|
${SQLITE_SOURCES}
|
||||||
../3rdparty/sqlite/sqlite3.h
|
|
||||||
../3rdparty/sqlite/carray.c
|
|
||||||
../3rdparty/sqlite/config.h
|
|
||||||
../3rdparty/sqlite/sqlite.h
|
|
||||||
constraints.h
|
constraints.h
|
||||||
createtablesqlstatementbuilder.h
|
createtablesqlstatementbuilder.h
|
||||||
lastchangedrowid.h
|
lastchangedrowid.h
|
||||||
@@ -41,6 +45,17 @@ add_qtc_library(Sqlite
|
|||||||
sqlitelibraryinitializer.cpp sqlitelibraryinitializer.h
|
sqlitelibraryinitializer.cpp sqlitelibraryinitializer.h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
set(DISABLE_WARNINGS "-W0")
|
||||||
|
else()
|
||||||
|
set(DISABLE_WARNINGS "-w")
|
||||||
|
endif()
|
||||||
|
set_source_files_properties(
|
||||||
|
${SQLITE_SOURCES}
|
||||||
|
PROPERTIES
|
||||||
|
COMPILE_OPTIONS ${DISABLE_WARNINGS}
|
||||||
|
)
|
||||||
|
|
||||||
extend_qtc_library(Sqlite DEFINES SQLITE_CUSTOM_INCLUDE=config.h)
|
extend_qtc_library(Sqlite DEFINES SQLITE_CUSTOM_INCLUDE=config.h)
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
|
Reference in New Issue
Block a user