[CMake] MSBuild and automatic project file regenation

Óscar Fuentes ofv at wanadoo.es
Sun Jan 8 23:59:57 EST 2012


When MSBuild.exe is used (typically by "cmake --build") for building a
VS2010 project generated by cmake, it correctly invokes cmake for
regenerating the project files if changes to the CMakeLists.txt files
are detected. However, the build does not restart nor abort, so MSBuild
continues using the outdated project files that it previously read,
ending some time later with lots of error messages from the compiler or
linker, hence wasting time, causing confusion and making difficult to
notice that a regeneration had happened.

Is there any trick for stopping MSBuild as soon as cmake ends
regenerating the project files?



More information about the CMake mailing list