diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-10-29 14:45:26 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-10-29 14:45:26 (GMT) |
commit | ac2859aaa36ad25ff71da0a2dae54b84e6378897 (patch) | |
tree | 9cca99401309ebc76c7e5b378d7077856743e33d /Source/cmakemain.cxx | |
parent | 69dd3218ba0bcdbcf3869f229199df8cd545612f (diff) | |
download | CMake-ac2859aaa36ad25ff71da0a2dae54b84e6378897.zip CMake-ac2859aaa36ad25ff71da0a2dae54b84e6378897.tar.gz CMake-ac2859aaa36ad25ff71da0a2dae54b84e6378897.tar.bz2 |
ENH: Start includding the scripting support
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r-- | Source/cmakemain.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index 5833dd1..3f94332 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -149,6 +149,7 @@ int do_cmake(int ac, char** av) bool list_all_cached = false; bool list_help = false; bool view_only = false; + bool script_mode = false; std::vector<std::string> args; for(int i =0; i < ac; ++i) { @@ -182,6 +183,11 @@ int do_cmake(int ac, char** av) list_all_cached = true; list_help = true; } + else if (strncmp(av[i], "-M", 2) == 0) + { + script_mode = true; + args.push_back(av[i]); + } else { args.push_back(av[i]); @@ -200,6 +206,7 @@ int do_cmake(int ac, char** av) } cmake cm; cm.SetProgressCallback(updateProgress, 0); + cm.SetScriptMode(script_mode); int res = cm.Run(args, view_only); if ( list_cached || list_all_cached ) { |