diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-11-07 15:52:33 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-11-08 16:12:29 +0000 |
commit | 8ef64341c3227937617f78bc3fe3f6a13e78df0d (patch) | |
tree | f6f58f9ea411597d49d7faf571a8a8947ac9eb3e /cmake/QtPostProcess.cmake | |
parent | 021c17c62f963a682c6a4b19f0c3d362c28a97ee (diff) |
Fix architecture config tests values to be written only once
Every time the qtbase project was reconfigured, the list of
config tests results was appended to a cache variable which was
never reset, resulting in multiple copies of the same values
being written to QtBuildInternalsExtra.cmake.
Make sure to clean the cache variable before appending to it.
Also change the variable to be all upper-case, to be consistent
with other cache variables.
Change-Id: Ic12046730a080595e19377981a726bc330641dc1
Reviewed-by: Qt CMake Build Bot
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'cmake/QtPostProcess.cmake')
-rw-r--r-- | cmake/QtPostProcess.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtPostProcess.cmake b/cmake/QtPostProcess.cmake index f77cfe546e..c6b4e8c4dd 100644 --- a/cmake/QtPostProcess.cmake +++ b/cmake/QtPostProcess.cmake @@ -314,7 +314,7 @@ endfunction() function(qt_generate_build_internals_extra_cmake_code) if(PROJECT_NAME STREQUAL "QtBase") set(QT_EXTRA_BUILD_INTERNALS_VARS) - foreach(var IN LISTS qt_base_configure_tests_vars_to_export) + foreach(var IN LISTS QT_BASE_CONFIGURE_TESTS_VARS_TO_EXPORT) string(APPEND QT_EXTRA_BUILD_INTERNALS_VARS "set(${var} \"${${var}}\" CACHE INTERNAL \"\")\n") endforeach() |