From 8cff84a26a03993d35ea55a8f41143b5c00eebd0 Mon Sep 17 00:00:00 2001 From: Raphael Salamon Date: Tue, 16 Jan 2018 01:37:40 +0100 Subject: [PATCH] Add `main` argument to `dependency` (#2828) `GTest` uses this keyword for conditional linking of it's main(). Fixes issue #2828 --- mesonbuild/interpreter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index b848a6991..9a018bb65 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -1368,7 +1368,7 @@ permitted_kwargs = {'add_global_arguments': {'language'}, 'build_target': build_target_kwargs, 'configure_file': {'input', 'output', 'configuration', 'command', 'install_dir', 'capture', 'install'}, 'custom_target': {'input', 'output', 'command', 'install', 'install_dir', 'build_always', 'capture', 'depends', 'depend_files', 'depfile', 'build_by_default'}, - 'dependency': {'default_options', 'fallback', 'language', 'method', 'modules', 'optional_modules', 'native', 'required', 'static', 'version'}, + 'dependency': {'default_options', 'fallback', 'language', 'main', 'method', 'modules', 'optional_modules', 'native', 'required', 'static', 'version'}, 'declare_dependency': {'include_directories', 'link_with', 'sources', 'dependencies', 'compile_args', 'link_args', 'version'}, 'executable': exe_kwargs, 'find_program': {'required', 'native'},