Use the correctly versioned variable when resolving ABI-specific cmake directory

Use the QT_CMAKE_EXPORT_NAMESPACE prefixed INSTALL_LIBS variable when
resolving the cmake path of the ABI-specific cmake directory.

Pick-to: 6.6 6.5
Change-Id: Ibc4a1b152135d840de104c15a183b13fca0739ea
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
(cherry picked from commit df8c3d40c85465027de375f656684badc6247121)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Alexey Edelev 2024-03-19 16:05:32 +01:00 committed by Qt Cherry-pick Bot
parent 9f14d0a288
commit 539c6b6f76

View File

@ -1087,7 +1087,8 @@ function(_qt_internal_get_android_abi_cmake_dir_path out_path abi)
NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_INTERNAL_IS_STANDALONE_TEST) NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_INTERNAL_IS_STANDALONE_TEST)
set(cmake_dir "${QT_CONFIG_BUILD_DIR}") set(cmake_dir "${QT_CONFIG_BUILD_DIR}")
else() else()
set(cmake_dir "${prefix_path}/${QT6_INSTALL_LIBS}/cmake") string(TOUPPER "${QT_CMAKE_EXPORT_NAMESPACE}" export_namespace_upper)
set(cmake_dir "${prefix_path}/${${export_namespace_upper}_INSTALL_LIBS}/cmake")
endif() endif()
endif() endif()