Re: [CMake] MSBuild and automatic project file regenation

2012-02-13 Thread Bill Hoffman
On 2/13/2012 11:26 AM, Michael Hertling wrote: OK, I see. So, it's a shortcoming of VS, if I understand correctly: No dependency of object files on project files, and I guess that this is not amendable by the means of CMake. ... I.e., in order to trigger a rebuild with VS, an actual change i

Re: [CMake] MSBuild and automatic project file regenation

2012-02-13 Thread Michael Hertling
On 02/09/2012 05:35 PM, Bill Hoffman wrote: > I took a look at this, and it is behaving as expected with VS. VS does > NOT have a depend on compile flags. You can change a .vcproj file and > the flags it uses all you want, and VS will NOT rebuild any files > because of that. OK, I see. So, it

Re: [CMake] MSBuild and automatic project file regenation

2012-02-09 Thread Bill Hoffman
I took a look at this, and it is behaving as expected with VS. VS does NOT have a depend on compile flags. You can change a .vcproj file and the flags it uses all you want, and VS will NOT rebuild any files because of that. So, as far as VS is concerned your source file has not changed and d

Re: [CMake] MSBuild and automatic project file regenation

2012-02-09 Thread aaron . meadows
to try this with 2.8.7 from a vs 2008 command prompt, it configured with vs 2010. I had to specify -G"Visual Studio 9 2008" to get the 2008 configuration. Let me know if you want me to try anything else. Aaron Meadows -Original Message- From: cmake-boun...@cmake.org [mailto

Re: [CMake] MSBuild and automatic project file regenation

2012-02-09 Thread Michael Hertling
On 01/13/2012 08:02 PM, Michael Hertling wrote: > On 01/13/2012 03:42 PM, Bill Hoffman wrote: >> On 1/13/2012 9:10 AM, Michael Hertling wrote: >> >>> With CMake 2.8.7 and VS 2008, I can report the following findings: >>> >>> (1) Starting out from within an empty build directory: "cmake .." >>>

Re: [CMake] MSBuild and automatic project file regenation

2012-01-13 Thread Michael Hertling
On 01/13/2012 03:42 PM, Bill Hoffman wrote: > On 1/13/2012 9:10 AM, Michael Hertling wrote: > >> With CMake 2.8.7 and VS 2008, I can report the following findings: >> >> (1) Starting out from within an empty build directory: "cmake .." >> followed by "cmake --build ." configures/builds as exp

Re: [CMake] MSBuild and automatic project file regenation

2012-01-13 Thread Bill Hoffman
On 1/13/2012 9:10 AM, Michael Hertling wrote: With CMake 2.8.7 and VS 2008, I can report the following findings: (1) Starting out from within an empty build directory: "cmake .." followed by "cmake --build ." configures/builds as expected. (2) Tweaking CMakeLists.txt file only and leaving

Re: [CMake] MSBuild and automatic project file regenation

2012-01-13 Thread Michael Hertling
On 01/10/2012 07:09 PM, Óscar Fuentes wrote: > Michael Hertling > writes: > >> But aren't the issues related at least? > > Dunno. > >> If I understand >> correctly, "cmake --build" invokes MSBuild which >> >> - loads the solution file and the project files, >> - reinvokes CMake via the ZERO_CHE

Re: [CMake] MSBuild and automatic project file regenation

2012-01-10 Thread Óscar Fuentes
Michael Hertling writes: > But aren't the issues related at least? Dunno. > If I understand > correctly, "cmake --build" invokes MSBuild which > > - loads the solution file and the project files, > - reinvokes CMake via the ZERO_CHECK project/target > to regenerate them if CMakeLists.txt has

Re: [CMake] MSBuild and automatic project file regenation

2012-01-09 Thread Michael Hertling
On 01/09/2012 07:56 PM, Óscar Fuentes wrote: > Michael Hertling > writes: > >> On 01/09/2012 02:34 PM, David Cole wrote: >>> No trick, but to avoid this, perhaps we should change the "--build" >>> handler to run the cmake configure & generate step before calling out >>> to MSBuild. You can easily

Re: [CMake] MSBuild and automatic project file regenation

2012-01-09 Thread John Drescher
On Mon, Jan 9, 2012 at 1:56 PM, Óscar Fuentes wrote: > Michael Hertling > writes: > >> On 01/09/2012 02:34 PM, David Cole wrote: >>> No trick, but to avoid this, perhaps we should change the "--build" >>> handler to run the cmake configure & generate step before calling out >>> to MSBuild. You ca

Re: [CMake] MSBuild and automatic project file regenation

2012-01-09 Thread Óscar Fuentes
Michael Hertling writes: > On 01/09/2012 02:34 PM, David Cole wrote: >> No trick, but to avoid this, perhaps we should change the "--build" >> handler to run the cmake configure & generate step before calling out >> to MSBuild. You can easily do this yourself from the command line by >> adopting

Re: [CMake] MSBuild and automatic project file regenation

2012-01-09 Thread Michael Hertling
On 01/09/2012 02:34 PM, David Cole wrote: > On Sun, Jan 8, 2012 at 11:59 PM, Óscar Fuentes wrote: >> 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 CMake

Re: [CMake] MSBuild and automatic project file regenation

2012-01-09 Thread David Cole
On Sun, Jan 8, 2012 at 11:59 PM, Óscar Fuentes wrote: > 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 bu

[CMake] MSBuild and automatic project file regenation

2012-01-08 Thread Óscar Fuentes
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