Because Visual Studio 2010 is broken and won’t automatically reload a solution when it changed externally via CMake, the guys at kitware made this macro that prompts you to reload the whole solution instead of pressing reload for every project like Visual Studio does. This would be nice if it actually worked.
In VC 10 this macro is broken and further chokes the ide. I have another solution for automatically reloading externally changed projects/solutions (the VSCommands add-in) and would want to disable cmake’s macro of doing so. Does anyone know a way?
To “disable” the CMake macro that runs to prompt for solution reloading, you could edit the macro labeled “DO NOT EDIT THIS MACRO”…
In Visual Studio, choose “Tools > Macros > Macros IDE…” from the menu, comment out the body of the “ReloadProjects” and “StopBuild” macros in the CMakeVSMacros2.Macros module, and then even when CMake calls those macros, they’ll have no effect.
Perhaps you could do that, and also try the VS addin mentioned in this CMake bug report on the topic: http://public.kitware.com/Bug/view.php?id=11258#c27652