ClangCodeModel: Fix expression to find lib dir.

Change-Id: I71362574d8437a7d95348c23eaf3698b7467b44d
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
David Schulz
2015-01-09 07:29:53 +01:00
parent 084cd16541
commit 2e3ec6b680

View File

@@ -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}")
}