Fix the namespaceless target condition in __qt_internal_walk_libs
Access the target name value, but not use the variable name in when checking the target existence. Change-Id: I0f86e3c7665d9c028bf4cbdc5aa8fb840fe1d542 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> (cherry picked from commit 3d4a5c513ab050d04ab175610167f4d31982be5c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 0d7784e09b73615828060fa4a923d9d659c1860d) (cherry picked from commit 12823337d253857b5005d6deff02f429fe134e69) (cherry picked from commit dd1fc0a399c1e2280402a9a0df3215dd977da643)
This commit is contained in:
parent
39cbdde145
commit
e1d9205549
@ -186,7 +186,7 @@ function(__qt_internal_walk_libs
|
||||
# namespace. Which one is preferred doesn't really matter. This code exists to
|
||||
# avoid ending up with both, Qt::Foo and Foo in our dependencies.
|
||||
set(namespaceless_lib_target "${CMAKE_MATCH_1}")
|
||||
if(TARGET namespaceless_lib_target)
|
||||
if(TARGET "${namespaceless_lib_target}")
|
||||
set(lib_target ${namespaceless_lib_target})
|
||||
endif()
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user