summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorLeander Beernaert <leander.beernaert@qt.io>2019-06-26 14:08:02 +0200
committerLeander Beernaert <leander.beernaert@qt.io>2019-06-26 12:13:38 +0000
commit5efdf54f84e7f57536668b31f7a39c3e87692195 (patch)
tree88c075a4abb46145aaf674c1942350e705833ebc /cmake
parent1a8799bfdddbe45392fb6524ae21c1ab39df74e1 (diff)
Fix error in run_config_test_architecture
The run_config_test_architecture() function in QtBaseConfig was not working correctly as we were not updating the length of the line properly. Change-Id: I29c5b45f1fa36d16cb2ef00950feb80987f6b176 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtBaseConfigureTests.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtBaseConfigureTests.cmake b/cmake/QtBaseConfigureTests.cmake
index d8024787f8..2787edaecd 100644
--- a/cmake/QtBaseConfigureTests.cmake
+++ b/cmake/QtBaseConfigureTests.cmake
@@ -13,7 +13,7 @@ function(run_config_test_architecture)
file(STRINGS "${_arch_file}" _arch_lines LENGTH_MINIMUM 16 LENGTH_MAXIMUM 1024 ENCODING UTF-8)
foreach (_line ${_arch_lines})
- string(LENGTH "${line}" lineLength)
+ string(LENGTH "${_line}" lineLength)
string(FIND "${_line}" "==Qt=magic=Qt== Architecture:" _pos)
if (_pos GREATER -1)
math(EXPR _pos "${_pos}+29")