summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorYves Frederix <yves.frederix@gmail.com>2016-09-16 15:50:06 (GMT)
committerBrad King <brad.king@kitware.com>2016-11-17 18:53:42 (GMT)
commit427b6da9e5aa2e1a8570259573b1faa15e4169df (patch)
treec9a2281849dde22f953dbf76ed557f613275d643 /Source/cmakemain.cxx
parentab4a9a98266fb29008cecc9649a91fc844c541f5 (diff)
downloadCMake-427b6da9e5aa2e1a8570259573b1faa15e4169df.zip
CMake-427b6da9e5aa2e1a8570259573b1faa15e4169df.tar.gz
CMake-427b6da9e5aa2e1a8570259573b1faa15e4169df.tar.bz2
VS: Teach `cmake --build` to reconfigure if needed before building
Visual Studio's build system does not cleanly handle itself being re-generated during the build. Teach `cmake --build` to check whether the build system needs to be re-generated before launching the native build tool.
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index a974061..dee288c 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -407,6 +407,8 @@ static int do_build(int ac, char const* const* av)
}
cmake cm;
+ cmSystemTools::SetMessageCallback(cmakemainMessageCallback, (void*)&cm);
+ cm.SetProgressCallback(cmakemainProgressCallback, (void*)&cm);
return cm.Build(dir, target, config, nativeOptions, clean);
#endif
}