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>
This commit is contained in:
parent
1a8799bfdd
commit
5efdf54f84
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user