diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-11-14 22:12:38 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-11-14 22:12:38 (GMT) |
commit | 9f6e61361c2672d98c80014da693fb2beebfe9a9 (patch) | |
tree | c3e6c586f3ccdb09505c924de36a1127d81fe286 /Source/cmakemain.cxx | |
parent | 435282e53842790bb49ba7217af565ad203c3a8d (diff) | |
download | CMake-9f6e61361c2672d98c80014da693fb2beebfe9a9.zip CMake-9f6e61361c2672d98c80014da693fb2beebfe9a9.tar.gz CMake-9f6e61361c2672d98c80014da693fb2beebfe9a9.tar.bz2 |
Add Progress support
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r-- | Source/cmakemain.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index 18fe38a..71c0dea 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -21,6 +21,7 @@ #include "cmListFileCache.h" int do_cmake(int ac, char** av); +void updateProgress(const char *msg, float prog, void *cd); int main(int ac, char** av) { @@ -67,6 +68,15 @@ int do_cmake(int ac, char** av) wizard.RunWizard(args); return 0; } - cmake cm; + cmake cm; + cm.SetProgressCallback(updateProgress, 0); return cm.Run(args); } + +void updateProgress(const char *msg, float prog, void*) +{ + if ( prog < 0 ) + { + cout << "-- " << msg << endl; + } +} |