forked from qt-creator/qt-creator
ClangCodeModel: Fix expression to find lib dir.
Change-Id: I71362574d8437a7d95348c23eaf3698b7467b44d Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -42,11 +42,12 @@ defineReplace(findClangOnWindows) {
|
||||
for (suffix, $$list(lib bin)) {
|
||||
for (libname, $$list(clang libclang)) {
|
||||
for (ext, FILE_EXTS) {
|
||||
exists("$${LLVM_INSTALL_DIR}/$${suffix}/$${libname}.$${ext}")
|
||||
exists("$${LLVM_INSTALL_DIR}/$${suffix}/$${libname}.$${ext}") {
|
||||
return($${LLVM_INSTALL_DIR}/$${suffix}/)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
error("Cannot find clang shared library at $${LLVM_INSTALL_DIR}")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user