Skip to content

Commit

Permalink
avoid using id in qbs files
Browse files Browse the repository at this point in the history
  • Loading branch information
arBmind committed Aug 29, 2024
1 parent 9cf7b6c commit 8fcef31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions third_party/googletest.qbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ import qbs.File
import qbs.FileInfo

StaticLibrary {
id: googletest
name: "googletest"

Probe {
id: googletestProbe
property pathList searchPathes: ["./googletest", "../../googletest"]
property path sourcePath: product.sourceDirectory

property path basePath // valid if found

configure: {
for (var i=0; i < searchPathes.length; i++) {
var c = searchPathes[i];
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"))) {
found = true;
basePath = FileInfo.joinPaths(googletest.sourceDirectory, c);
basePath = FileInfo.joinPaths(sourcePath, c);
return;
}
}
Expand Down

0 comments on commit 8fcef31

Please sign in to comment.