CMake: Propagate usage of WARNINGS_ARE_ERRORS when building repos
When configuring a qtbase developer build, WARNINGS_ARE_ERRORS is set to ON and -Werror flags are added to the PlatformInternal targets. But the value of WARNINGS_ARE_ERRORS is not exported. This means that CMake code can't make decisions based on that variable when building other repos, and we now have such code with the new syncqt.cpp in qt_internal_target_sync_headers. Export the value of WARNINGS_ARE_ERRORS in QtBuildInternalsExtra.cmake.in. Fixes: QTBUG-108151 Change-Id: I5de2633fcb1f20fead7d436c201852424e726842 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
parent
4d3f5ac0cc
commit
83ecb65ec0
@ -103,6 +103,9 @@ set(QT_BUILD_EXAMPLES_AS_EXTERNAL "@QT_BUILD_EXAMPLES_AS_EXTERNAL@" CACHE BOOL
|
|||||||
# Propagate usage of ccache.
|
# Propagate usage of ccache.
|
||||||
set(QT_USE_CCACHE @QT_USE_CCACHE@ CACHE BOOL "Enable the use of ccache")
|
set(QT_USE_CCACHE @QT_USE_CCACHE@ CACHE BOOL "Enable the use of ccache")
|
||||||
|
|
||||||
|
# Propragate the value of WARNINGS_ARE_ERRORS.
|
||||||
|
set(WARNINGS_ARE_ERRORS "@WARNINGS_ARE_ERRORS@" CACHE BOOL "Build Qt with warnings as errors")
|
||||||
|
|
||||||
# Propagate usage of versioned hard link.
|
# Propagate usage of versioned hard link.
|
||||||
set(QT_CREATE_VERSIONED_HARD_LINK "@QT_CREATE_VERSIONED_HARD_LINK@" CACHE BOOL
|
set(QT_CREATE_VERSIONED_HARD_LINK "@QT_CREATE_VERSIONED_HARD_LINK@" CACHE BOOL
|
||||||
"Enable the use of versioned hard link")
|
"Enable the use of versioned hard link")
|
||||||
|
Loading…
Reference in New Issue
Block a user