1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-09 14:27:56 +00:00

Use default warning level with MSVC in CMake

Previously used warning level 4 creates a lot of noise that largely come from Qt headers
This commit is contained in:
jagannatharjun 2020-07-17 13:58:40 +05:30
parent c7da78ff1d
commit d355491b85

View File

@ -59,7 +59,7 @@ macro(qbt_set_compiler_options)
endif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") endif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
set(QBT_ADDITIONAL_FLAGS "/wd4251 /wd4275 /wd4290 /W4" CACHE STRING "Additional qBittorent compile flags") set(QBT_ADDITIONAL_FLAGS "/wd4251 /wd4275 /wd4290" CACHE STRING "Additional qBittorent compile flags")
endif () endif ()
string(APPEND CMAKE_C_FLAGS " ${QBT_ADDITIONAL_FLAGS}") string(APPEND CMAKE_C_FLAGS " ${QBT_ADDITIONAL_FLAGS}")