CMake: Don't hardcode the library directory name
Using INSTALL_LIBDIR is the only reliable way to get the library install directory.
Amends: d1c56073b4
Pick-to: 6.2 6.3
Change-Id: Ib8c4fb8b4d339c63209393d7fdb3d1c3425b03a4
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
bb10
parent
7d60fde9a7
commit
8924cc13be
|
|
@ -808,7 +808,7 @@ macro(qt_examples_build_begin)
|
|||
if(NOT QT_IS_EXTERNAL_EXAMPLES_BUILD OR NOT __qt_all_examples_ported_to_external_projects)
|
||||
qt_internal_set_up_build_dir_package_paths()
|
||||
list(APPEND CMAKE_FIND_ROOT_PATH "${QT_BUILD_DIR}")
|
||||
list(APPEND QT_EXAMPLES_CMAKE_PREFIX_PATH "${QT_BUILD_DIR}/lib/cmake")
|
||||
list(APPEND QT_EXAMPLES_CMAKE_PREFIX_PATH "${QT_BUILD_DIR}/${INSTALL_LIBDIR}/cmake")
|
||||
endif()
|
||||
|
||||
# Because CMAKE_INSTALL_RPATH is empty by default in the repo project, examples need to have
|
||||
|
|
|
|||
Loading…
Reference in New Issue