diff --git a/Tools/px_process_params.py b/Tools/px_process_params.py index cba71e5669..e9061823bb 100644 --- a/Tools/px_process_params.py +++ b/Tools/px_process_params.py @@ -142,16 +142,19 @@ def main(): except: use_scope = False pass - if use_scope: + if use_scope and len(cmake_scope.scope) > 0: if not scanner.ScanDir([os.path.join(args.src_path, p) for p in cmake_scope.scope], parser): sys.exit(1) - else: + else: if not scanner.ScanDir([args.src_path], parser): sys.exit(1) if not parser.Validate(): sys.exit(1) param_groups = parser.GetParamGroups() + if len(param_groups) == 0: + print("Warning: no parameters found") + # Output to XML file if args.xml: if args.verbose: print("Creating XML file " + args.xml)