diff options
author | Yves Frederix <yves.frederix@gmail.com> | 2016-09-16 15:50:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-11-17 18:53:42 (GMT) |
commit | 427b6da9e5aa2e1a8570259573b1faa15e4169df (patch) | |
tree | c9a2281849dde22f953dbf76ed557f613275d643 /Source/cmakemain.cxx | |
parent | ab4a9a98266fb29008cecc9649a91fc844c541f5 (diff) | |
download | CMake-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.cxx | 2 |
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 } |