aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2022-05-17 15:35:10 +0200
committerEike Ziller <eike.ziller@qt.io>2022-05-17 13:47:16 +0000
commit6bfa7a2beafa897406d99e1d082b05754117a9a3 (patch)
tree3ff1fe5e92e01880b8edc1dabf49c00886556f36 /src
parent37c295f4320840b646e84e1cbda8aa07eafc353a (diff)
Suppress compile warnings from litehtml
Change-Id: I5700c0c24ce19da73bbf1e8dd4a1d68173237979 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f3fe6f4..b508a05 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -24,6 +24,18 @@ if(NOT TARGET litehtml AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/litehtml/
add_subdirectory(3rdparty/litehtml EXCLUDE_FROM_ALL)
+ # suppress compiler warnings from litehtml
+ set_target_properties(
+ litehtml
+ PROPERTIES
+ QT_COMPILE_OPTIONS_DISABLE_WARNINGS ON
+ )
+ set_target_properties(
+ gumbo
+ PROPERTIES
+ QT_COMPILE_OPTIONS_DISABLE_WARNINGS ON
+ )
+
set(CMAKE_POSITION_INDEPENDENT_CODE "${ORIG_FPIC}")
set(BUILD_SHARED_LIBS ${ORIG_BUILD_SHARED_LIBS})
# force optimized litehtml even in debug