We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cf7b6c commit 8fcef31Copy full SHA for 8fcef31
1 file changed
third_party/googletest.qbs
@@ -3,21 +3,21 @@ import qbs.File
3
import qbs.FileInfo
4
5
StaticLibrary {
6
- id: googletest
7
name: "googletest"
8
9
Probe {
10
id: googletestProbe
11
property pathList searchPathes: ["./googletest", "../../googletest"]
+ property path sourcePath: product.sourceDirectory
12
13
property path basePath // valid if found
14
15
configure: {
16
for (var i=0; i < searchPathes.length; i++) {
17
var c = searchPathes[i];
18
- if (File.exists(FileInfo.joinPaths(googletest.sourceDirectory, c, "googletest/src/gtest-all.cc"))) {
+ if (File.exists(FileInfo.joinPaths(sourcePath, c, "googletest/src/gtest-all.cc"))) {
19
found = true;
20
- basePath = FileInfo.joinPaths(googletest.sourceDirectory, c);
+ basePath = FileInfo.joinPaths(sourcePath, c);
21
return;
22
}
23
0 commit comments