summaryrefslogtreecommitdiffstats
path: root/src/corelib/Qt5ModuleLocationForInstall.cmake.in
diff options
context:
space:
mode:
authorKonstantin Tokarev <annulen@yandex.ru>2016-11-25 13:12:54 +0300
committerKonstantin Tokarev <annulen@yandex.ru>2016-11-25 10:46:34 +0000
commit5cd4001bf2a7f0894c6ac269860e833b02df6cde (patch)
tree8f95051742226f8a94e43d003e8b72c4881d5763 /src/corelib/Qt5ModuleLocationForInstall.cmake.in
parent8a2f5445231fc871a9fd88dec5569deb3104983d (diff)
Use separate Qt5Config.cmake inside build directory
Qt5Config restricts search paths of Qt components to ${_qt5_install_prefix} to prevent accidentally using system Qt modules in case of restricted Qt configuration. However this does not work properly when Qt is used without installation, in particular when building cmake-based QtWebKit as a Qt submodule, because ${_qt5_install_prefix} resolves to QtBase and does not contain components from other modules. This patch changes search path from ${_qt5_install_prefix} to all qt5 subdirectories. Change-Id: Icf01a256097710889573ad69d847b9c3bffa1449 Reviewed-by: Kevin Funk <kevin.funk@kdab.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'src/corelib/Qt5ModuleLocationForInstall.cmake.in')
-rw-r--r--src/corelib/Qt5ModuleLocationForInstall.cmake.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/Qt5ModuleLocationForInstall.cmake.in b/src/corelib/Qt5ModuleLocationForInstall.cmake.in
new file mode 100644
index 0000000000..e401b1fe34
--- /dev/null
+++ b/src/corelib/Qt5ModuleLocationForInstall.cmake.in
@@ -0,0 +1,4 @@
+set(_qt5_root_dir ${_qt5_install_prefix})
+set(_qt5_module_paths ${_qt5_install_prefix})
+
+set(_qt5_module_location_template ${_qt5_install_prefix}/Qt5@module@/Qt5@module@Config.cmake)