mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
chore(build): Enable all warnings on qTox libraries as well
warnings interface was only being linked to qtox_static, so were not being applied to e.g. util. Link it to each library as well as qtox_static so that they all inherit all the warnings.
This commit is contained in:
parent
9da8ec9926
commit
0d366a5790
|
@ -626,10 +626,10 @@ target_link_libraries(${PROJECT_NAME}_static
|
|||
${ALL_LIBRARIES}
|
||||
coverage_config)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME}_static qtox::warnings)
|
||||
target_link_libraries(${PROJECT_NAME}_static util_library)
|
||||
target_link_libraries(${PROJECT_NAME}_static audio_library)
|
||||
target_link_libraries(${PROJECT_NAME}_static translations_library)
|
||||
target_link_libraries(${PROJECT_NAME}_static qtox::warnings)
|
||||
|
||||
add_executable(${PROJECT_NAME}
|
||||
WIN32
|
||||
|
|
|
@ -38,3 +38,4 @@ target_include_directories(audio_library PUBLIC include/)
|
|||
target_link_libraries(audio_library util_library)
|
||||
target_link_libraries(audio_library Qt5::Core)
|
||||
target_link_libraries(audio_library ${OPENAL_LIBRARIES})
|
||||
target_link_libraries(audio_library qtox::warnings)
|
||||
|
|
|
@ -29,4 +29,5 @@ target_link_libraries(mock_library
|
|||
util_library
|
||||
Qt5::Core
|
||||
Qt5::Network
|
||||
Qt5::Gui)
|
||||
Qt5::Gui
|
||||
qtox::warnings)
|
||||
|
|
|
@ -27,3 +27,4 @@ add_library(util_library STATIC
|
|||
# We need this directory, and users of our library will need it too
|
||||
target_include_directories(util_library PUBLIC include/)
|
||||
target_link_libraries(util_library PRIVATE Qt5::Core)
|
||||
target_link_libraries(util_library PRIVATE qtox::warnings)
|
||||
|
|
Loading…
Reference in New Issue
Block a user