Handle the QT_SKIP_WARNINGS_ARE_ERRORS property when running syncqt
When creating the syncqt custom target we only check if the WARNINGS_ARE_ERRORS variable is set. But the warnings-are-errors feature can be disabled using the QT_SKIP_WARNINGS_ARE_ERRORS target property. Add the genex condition to opt out the '-warningsAreErrors' argument using the QT_SKIP_WARNINGS_ARE_ERRORS property. Change-Id: I8e6f89453500335c2b31e6e69c65b351c79dddc2 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
17b542c2d2
commit
7c1270ea76
@ -322,7 +322,14 @@ function(qt_internal_target_sync_headers target module_headers module_headers_ge
|
||||
|
||||
set(build_time_syncqt_arguments "")
|
||||
if(WARNINGS_ARE_ERRORS)
|
||||
list(APPEND build_time_syncqt_arguments -warningsAreErrors)
|
||||
if(is_interface_lib)
|
||||
set(warnings_are_errors_enabled_genex 1)
|
||||
else()
|
||||
set(warnings_are_errors_enabled_genex
|
||||
"$<NOT:$<BOOL:$<TARGET_PROPERTY:${target},QT_SKIP_WARNINGS_ARE_ERRORS>>>")
|
||||
endif()
|
||||
list(APPEND build_time_syncqt_arguments
|
||||
"$<${warnings_are_errors_enabled_genex}:-warningsAreErrors>")
|
||||
endif()
|
||||
|
||||
if(is_framework)
|
||||
|
Loading…
x
Reference in New Issue
Block a user