mirror of https://github.com/qt/qtbase.git
Fix not to add warnings_are_errors property to INTERFACE targets
Amends f000685612
Change-Id: I3b61b64bb9c755de38f4a5ffcb07b39b38bd4fd7
Reviewed-by: Leander Beernaert <leander.beernaert@qt.io>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Reviewed-by: Qt CMake Build Bot
This commit is contained in:
parent
ab3bbc9d74
commit
9e6456a49d
|
@ -1304,6 +1304,10 @@ function(qt_internal_set_no_exceptions_flags target)
|
|||
endfunction()
|
||||
|
||||
function(qt_skip_warnings_are_errors target)
|
||||
get_target_property(target_type "${target}" TYPE)
|
||||
if(target_type STREQUAL "INTERFACE_LIBRARY")
|
||||
return()
|
||||
endif()
|
||||
set_target_properties("${target}" PROPERTIES QT_SKIP_WARNINGS_ARE_ERRORS ON)
|
||||
endfunction()
|
||||
|
||||
|
|
Loading…
Reference in New Issue