File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,21 +3,21 @@ import qbs.File
3
3
import qbs.FileInfo
4
4
5
5
StaticLibrary {
6
- id: googletest
7
6
name: " googletest"
8
7
9
8
Probe {
10
9
id: googletestProbe
11
10
property pathList searchPathes: [" ./googletest" , " ../../googletest" ]
11
+ property path sourcePath: product .sourceDirectory
12
12
13
13
property path basePath // valid if found
14
14
15
15
configure: {
16
16
for (var i= 0 ; i < searchPathes .length ; i++ ) {
17
17
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" ))) {
19
19
found = true ;
20
- basePath = FileInfo .joinPaths (googletest . sourceDirectory , c);
20
+ basePath = FileInfo .joinPaths (sourcePath , c);
21
21
return ;
22
22
}
23
23
}
You can’t perform that action at this time.
0 commit comments