mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 04:54:18 +00:00
cmake: disable warnings for bundled QtSingleApplication
This commit is contained in:
parent
c2f9f57ef4
commit
72cb868224
@ -20,6 +20,10 @@ add_library(qtsingleapplication ${QBT_QTSINGLEAPPLICATION_HEADERS} ${QBT_QTSINGL
|
|||||||
target_include_directories(qtsingleapplication INTERFACE "${qtsingleapplication_SOURCE_DIR}")
|
target_include_directories(qtsingleapplication INTERFACE "${qtsingleapplication_SOURCE_DIR}")
|
||||||
target_link_qt_components(qtsingleapplication Network)
|
target_link_qt_components(qtsingleapplication Network)
|
||||||
|
|
||||||
|
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
||||||
|
target_compile_options(qtsingleapplication PRIVATE "-w") # disable warning for 3rdparty code
|
||||||
|
endif()
|
||||||
|
|
||||||
if (GUI)
|
if (GUI)
|
||||||
target_link_qt_components(qtsingleapplication Widgets)
|
target_link_qt_components(qtsingleapplication Widgets)
|
||||||
endif (GUI)
|
endif (GUI)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user