mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 09:55:55 +00:00
Merge pull request #10944 from Chocobo1/cmake
Improve CMake build system
This commit is contained in:
commit
45eba9ec31
@ -49,7 +49,7 @@ addons:
|
|||||||
name: "qbittorrent/qBittorrent"
|
name: "qbittorrent/qBittorrent"
|
||||||
description: "Build submitted via Travis CI"
|
description: "Build submitted via Travis CI"
|
||||||
build_command_prepend: "./bootstrap.sh && ./configure $qmake_conf"
|
build_command_prepend: "./bootstrap.sh && ./configure $qmake_conf"
|
||||||
build_command: make
|
build_command: "make -j2"
|
||||||
branch_pattern: $coverity_branch
|
branch_pattern: $coverity_branch
|
||||||
notification_email: sledgehammer999@qbittorrent.org
|
notification_email: sledgehammer999@qbittorrent.org
|
||||||
apt:
|
apt:
|
||||||
|
@ -10,14 +10,14 @@ macro(qbt_set_compiler_options)
|
|||||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||||
#-Wshadow -Wconversion ?
|
#-Wshadow -Wconversion ?
|
||||||
set(_GCC_COMMON_C_AND_CXX_FLAGS "-Wall -Wextra"
|
set(_GCC_COMMON_C_AND_CXX_FLAGS "-Wall -Wextra"
|
||||||
"-Wfloat-equal -Wcast-qual -Wcast-align"
|
"-Wcast-qual -Wcast-align"
|
||||||
"-Wsign-conversion -Winvalid-pch -Wno-long-long"
|
"-Winvalid-pch -Wno-long-long"
|
||||||
#"-fstack-protector-all"
|
#"-fstack-protector-all"
|
||||||
#"-Werror -Wno-error=deprecated-declarations"
|
#"-Werror -Wno-error=deprecated-declarations"
|
||||||
)
|
)
|
||||||
set(_GCC_COMMON_CXX_FLAGS "-fexceptions -frtti"
|
set(_GCC_COMMON_CXX_FLAGS "-fexceptions -frtti"
|
||||||
"-Woverloaded-virtual -Wold-style-cast"
|
"-Woverloaded-virtual -Wold-style-cast"
|
||||||
"-Wnon-virtual-dtor -Wfloat-equal -Wcast-qual -Wcast-align"
|
"-Wnon-virtual-dtor"
|
||||||
#"-Weffc++"
|
#"-Weffc++"
|
||||||
#"-Werror -Wno-error=cpp"
|
#"-Werror -Wno-error=cpp"
|
||||||
# we should modify code to make these ones obsolete
|
# we should modify code to make these ones obsolete
|
||||||
|
@ -78,4 +78,3 @@ endif ()
|
|||||||
if (WEBUI)
|
if (WEBUI)
|
||||||
add_subdirectory(webui)
|
add_subdirectory(webui)
|
||||||
endif (WEBUI)
|
endif (WEBUI)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user