aboutsummaryrefslogtreecommitdiffstats
path: root/examples/grpc/grpc.qbs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/grpc/grpc.qbs')
-rw-r--r--examples/grpc/grpc.qbs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/grpc/grpc.qbs b/examples/grpc/grpc.qbs
index 9f80add04..c4f146ec0 100644
--- a/examples/grpc/grpc.qbs
+++ b/examples/grpc/grpc.qbs
@@ -36,7 +36,7 @@ Project {
Application {
Depends { name: "cpp" }
Depends { name: "protobuf.cpp"; required: false }
- condition: protobuf.cpp.present
+ condition: protobuf.cpp.present && qbs.targetOS === qbs.hostOS
protobuf.cpp.useGrpc: true
consoleApplication: true
cpp.cxxLanguageVersion: "c++17"
@@ -56,7 +56,7 @@ Project {
Application {
Depends { name: "cpp" }
Depends { name: "protobuf.cpp"; required: false }
- condition: protobuf.cpp.present
+ condition: protobuf.cpp.present && qbs.targetOS === qbs.hostOS
protobuf.cpp.useGrpc: true
consoleApplication: true
cpp.cxxLanguageVersion: "c++17"