From 2f301bc45b4ae06a7678812b1a3d5ec6755b76f8 Mon Sep 17 00:00:00 2001 From: Wolfgang Bremer Date: Mon, 18 Apr 2016 13:06:41 +0200 Subject: CMake: Update qmljs codemodel With this patch it is possible to specify QML_IMPORT_PATH in CMake projects and QtCreator will scan those paths. One only has to make sure that the variable which is set in the CMakeLists.txt is also added to the CMakeCache.txt Task-number: QTCREATORBUG-11328 Change-Id: I11c7694806664d3203d855983e7db4a89fac267d Reviewed-by: Thomas Hartmann Reviewed-by: Tobias Hunger --- src/libs/qmljs/qmljslink.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libs/qmljs/qmljslink.cpp') diff --git a/src/libs/qmljs/qmljslink.cpp b/src/libs/qmljs/qmljslink.cpp index f46b228547..1d9b633370 100644 --- a/src/libs/qmljs/qmljslink.cpp +++ b/src/libs/qmljs/qmljslink.cpp @@ -437,7 +437,8 @@ Import LinkPrivate::importNonFile(Document::Ptr doc, const ImportInfo &importInf "For qmake projects, use the QML_IMPORT_PATH variable to add import paths.\n" "For Qbs projects, declare and set a qmlImportPaths property in your product " "to add import paths.\n" - "For qmlproject projects, use the importPaths property to add import paths.").arg( + "For qmlproject projects, use the importPaths property to add import paths.\n" + "For CMake projects, make sure QML_IMPORT_PATH variable is in CMakeCache.txt.\n").arg( importPaths.join(QLatin1Char('\n')))); } -- cgit v1.2.1