Skip to content

Commit 8fcef31

Browse files
committed
avoid using id in qbs files
1 parent 9cf7b6c commit 8fcef31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

third_party/googletest.qbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ import qbs.File
33
import qbs.FileInfo
44

55
StaticLibrary {
6-
id: googletest
76
name: "googletest"
87

98
Probe {
109
id: googletestProbe
1110
property pathList searchPathes: ["./googletest", "../../googletest"]
11+
property path sourcePath: product.sourceDirectory
1212

1313
property path basePath // valid if found
1414

1515
configure: {
1616
for (var i=0; i < searchPathes.length; i++) {
1717
var c = searchPathes[i];
18-
if (File.exists(FileInfo.joinPaths(googletest.sourceDirectory, c, "googletest/src/gtest-all.cc"))) {
18+
if (File.exists(FileInfo.joinPaths(sourcePath, c, "googletest/src/gtest-all.cc"))) {
1919
found = true;
20-
basePath = FileInfo.joinPaths(googletest.sourceDirectory, c);
20+
basePath = FileInfo.joinPaths(sourcePath, c);
2121
return;
2222
}
2323
}

0 commit comments

Comments
 (0)