diff options
Diffstat (limited to 'share/qbs/modules/protobuf/objc/protobufobjc.qbs')
-rw-r--r-- | share/qbs/modules/protobuf/objc/protobufobjc.qbs | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/share/qbs/modules/protobuf/objc/protobufobjc.qbs b/share/qbs/modules/protobuf/objc/protobufobjc.qbs index c252d9949..e2c4b5260 100644 --- a/share/qbs/modules/protobuf/objc/protobufobjc.qbs +++ b/share/qbs/modules/protobuf/objc/protobufobjc.qbs @@ -43,13 +43,15 @@ ProtobufBase { prepare: HelperFunctions.doPrepare(input.protobuf.objc, product, input, outputs, "objc") } - validate: { - baseValidate(); - if (!HelperFunctions.checkPath(frameworkPath)) { - if (!HelperFunctions.checkPath(includePath)) - throw "Can't find objective-c protobuf include files. Please set the includePath or frameworkPath property."; - if (!HelperFunctions.checkPath(libraryPath)) - throw "Can't find objective-c protobuf library. Please set the libraryPath or frameworkPath property."; + validateFunc: { + return function() { + base(); + if (!HelperFunctions.checkPath(frameworkPath)) { + if (!HelperFunctions.checkPath(includePath)) + throw "Can't find objective-c protobuf include files. Please set the includePath or frameworkPath property."; + if (!HelperFunctions.checkPath(libraryPath)) + throw "Can't find objective-c protobuf library. Please set the libraryPath or frameworkPath property."; + } } } |