Re: [CMake] disabling the cache

2007-11-08 Thread Jesper Eskilson
Bill Hoffman wrote: > So, I did look at how to fix this some. I have a c# program that can > force a running visual studio process to close and reload the solution > it has. The idea would be to have cmake run this when cmake is run as > part of the build. However, visual studio has a neat tric

Re: [CMake] disabling the cache

2007-11-07 Thread Bill Hoffman
Jesper Eskilson wrote: KSpam wrote: If you run the ZERO_CHECK target, CMake will generate the new project files without building everything. Following ZERO_CHECK, Visual Studio would have to reload the projects, and then you could build like normal. This makes building in Visual Studio esse

Re: [CMake] disabling the cache

2007-11-03 Thread Brandon Van Every
On Nov 3, 2007 6:37 AM, Alexander Neundorf <[EMAIL PROTECTED]> wrote: > On Thursday 01 November 2007, Brandon Van Every wrote: > > On Nov 1, 2007 2:27 PM, Miguel A. Figueroa-Villanueva <[EMAIL PROTECTED]> > wrote: > ... > > > Jesper, > > > > > > Maybe this is a good addition to the FAQ or somewhere

Re: [CMake] disabling the cache

2007-11-03 Thread Alexander Neundorf
On Thursday 01 November 2007, Brandon Van Every wrote: > On Nov 1, 2007 2:27 PM, Miguel A. Figueroa-Villanueva <[EMAIL PROTECTED]> wrote: ... > > Jesper, > > > > Maybe this is a good addition to the FAQ or somewhere else in the wiki > > as it seems to be a limitation that is not soon to be solved

Re: [CMake] disabling the cache

2007-11-02 Thread Jesper Eskilson
Philip Lowman wrote: And a related note here is Visual Studio's inability to detect that preprocessor definitions or dependent libraries have changed in a VCproj file and rebuild or relink the target accordingly. Don't get me started on the limitations of Visual Studio, please. ;-) -- /Jesper

Re: [CMake] disabling the cache

2007-11-02 Thread Philip Lowman
Jesper Eskilson wrote: > Bill Hoffman wrote: > >> For this case, you could have something like this: >> >> # if SOME_PROGRAM has a value but the program has been moved >> # or removed from the system, then clear the cache entry >> # so that find_program will try again. >> if(SOME_PROGRAM AND NOT E

re: [CMake] disabling the cache

2007-11-01 Thread Brandon Van Every
On Nov 1, 2007 2:27 PM, Miguel A. Figueroa-Villanueva <[EMAIL PROTECTED]> wrote: > On 11/1/07, Jesper Eskilson <[EMAIL PROTECTED]> wrote: > > KSpam wrote: > > > > > If you run the ZERO_CHECK target, CMake will generate the new project > > > files > > > without building everything. Following ZERO_

Re: [CMake] disabling the cache

2007-11-01 Thread Miguel A. Figueroa-Villanueva
On 11/1/07, Jesper Eskilson <[EMAIL PROTECTED]> wrote: > KSpam wrote: > > > If you run the ZERO_CHECK target, CMake will generate the new project files > > without building everything. Following ZERO_CHECK, Visual Studio would have > > to reload the projects, and then you could build like normal.

Re: [CMake] disabling the cache

2007-11-01 Thread Jesper Eskilson
KSpam wrote: If you run the ZERO_CHECK target, CMake will generate the new project files without building everything. Following ZERO_CHECK, Visual Studio would have to reload the projects, and then you could build like normal. This makes building in Visual Studio essentially a two-step proce

Re: [CMake] disabling the cache

2007-11-01 Thread KSpam
Jesper, On Thursday 01 November 2007 02:51:59 Jesper Eskilson wrote: > As I said in a previous post, the project files are being reloaded, but > not until *after* the build is complete. (Unless Visual Studio silently > reloads projects during a building, but I seriously doubt that.) If you run th

Re: [CMake] disabling the cache

2007-11-01 Thread Andreas Pakulat
On 01.11.07 15:08:19, Jesper Eskilson wrote: > Andreas Pakulat wrote: > > > , > > | On 01.11.07 10:49:12, Jesper Eskilson wrote: > > | In any case, the automatic regeneration of project files *does* > > | *not* > > | *work*, and my question was simply if there was a plan for either > > | doing

Re: [CMake] disabling the cache

2007-11-01 Thread Jesper Eskilson
James Bigler wrote: > What is the desired behavior? > > Did you want CMake to somehow notify the user that your project build is > incomplete and to build again? > > Did you want CMake to stop after rebuilding project files, notify the > user, then only build the code if the project files weren't

Re: [CMake] disabling the cache

2007-11-01 Thread Jesper Eskilson
Andreas Pakulat wrote: > , > | On 01.11.07 10:49:12, Jesper Eskilson wrote: > | In any case, the automatic regeneration of project files *does* > | *not* > | *work*, and my question was simply if there was a plan for either > | doing > | something about it (such as disabling it per default, wh

Re: [CMake] disabling the cache

2007-11-01 Thread James Bigler
On Nov 1, 2007, at 7:29 AM, Jesper Eskilson wrote: Andreas Pakulat wrote: On 01.11.07 10:49:12, Jesper Eskilson wrote: In any case, the automatic regeneration of project files *does* *not* *work*, and my question was simply if there was a plan for either doing something about it (such as di

Re: [CMake] disabling the cache

2007-11-01 Thread Andreas Pakulat
On 01.11.07 14:29:02, Jesper Eskilson wrote: > Andreas Pakulat wrote: > > On 01.11.07 10:49:12, Jesper Eskilson wrote: > >> In any case, the automatic regeneration of project files *does* *not* > >> *work*, and my question was simply if there was a plan for either doing > >> something about it (suc

Re: [CMake] disabling the cache

2007-11-01 Thread Jesper Eskilson
Andreas Pakulat wrote: > On 01.11.07 10:49:12, Jesper Eskilson wrote: >> In any case, the automatic regeneration of project files *does* *not* >> *work*, and my question was simply if there was a plan for either doing >> something about it (such as disabling it per default, which would be a >> sens

Re: [CMake] disabling the cache

2007-11-01 Thread Andreas Pakulat
On 01.11.07 10:49:12, Jesper Eskilson wrote: > In any case, the automatic regeneration of project files *does* *not* > *work*, and my question was simply if there was a plan for either doing > something about it (such as disabling it per default, which would be a > sensible thing to do, IMHO), and/

Re: [CMake] disabling the cache

2007-11-01 Thread Jesper Eskilson
KSpam wrote: > All of my coworkers use Visual Studio 2005, and it properly indicates when > project files need to be reloaded. In fact, it is quite an annoyance when > you have dozens of project files that are modified by CMake, and you have to > manually say "Yes" to reloading each and every

Re: [CMake] disabling the cache

2007-11-01 Thread Jesper Eskilson
Andreas Pakulat wrote: > On Mittwoch, 31. Oktober 2007, Jesper Eskilson wrote: >> BTW: Are there any plans of fixing the broken regeneration for Visual >> Studio? Or at least documenting it as known problem? As it is now, >> the project files are regenerated but not reloaded, and there is no >> fee

Re: [CMake] disabling the cache

2007-11-01 Thread Alexander Neundorf
On Wednesday 31 October 2007, Jesper Eskilson wrote: > Bill Hoffman wrote: > > For this case, you could have something like this: > > > > # if SOME_PROGRAM has a value but the program has been moved > > # or removed from the system, then clear the cache entry > > # so that find_program will try aga

Re: [CMake] disabling the cache

2007-10-31 Thread Andreas Pakulat
On Mittwoch, 31. Oktober 2007, Jesper Eskilson wrote: > BTW: Are there any plans of fixing the broken regeneration for Visual > Studio? Or at least documenting it as known problem? As it is now, > the project files are regenerated but not reloaded, and there is no > feedback that the new project fi

Re: [CMake] disabling the cache

2007-10-31 Thread KSpam
On Wednesday 31 October 2007 13:37:04 Jesper Eskilson wrote: > Ouch. My cmake files are unreadable enough without an added 3 lines here > and there checking if the cache entry needs to be replaced or not. A custom macro or two could clean the files up quite nicely. > BTW: Are there any plans of f

Re: [CMake] disabling the cache

2007-10-31 Thread Jesper Eskilson
Bill Hoffman wrote: For this case, you could have something like this: # if SOME_PROGRAM has a value but the program has been moved # or removed from the system, then clear the cache entry # so that find_program will try again. if(SOME_PROGRAM AND NOT EXISTS ${SOME_PROGRAM}) set(SOME_PROGRAM

Re: [CMake] disabling the cache

2007-10-31 Thread Bill Hoffman
Jesper Eskilson wrote: Bill Hoffman wrote: OK, so you want to disable the rerun of CMake, not the cache. That can be done with the CMAKE_SUPPRESS_REGENERATION variable. (set it to TRUE). Yes, I know how to use this variable. You should never have to "clear out the cache". If I make a ch

Re: [CMake] disabling the cache

2007-10-31 Thread Andreas Pakulat
On Mittwoch, 31. Oktober 2007, Bill Hoffman wrote: > You should never have to "clear out the cache". Not quite right, what happens if I move one of the libraries to a different place? In that case I have to at least remove all entries that relate to that library from the cache. Not your everyday

Re: [CMake] disabling the cache

2007-10-31 Thread Jesper Eskilson
Bill Hoffman wrote: OK, so you want to disable the rerun of CMake, not the cache. That can be done with the CMAKE_SUPPRESS_REGENERATION variable. (set it to TRUE). Yes, I know how to use this variable. You should never have to "clear out the cache". If I make a change in CMakeLists.txt wh

Re: [CMake] disabling the cache

2007-10-31 Thread Bill Hoffman
Jesper Eskilson wrote: Bill Hoffman wrote: Jesper Eskilson wrote: Hi people, Is there a way to disable the CMake cache, i.e. prevent CMake from generating or reading CMakeCache.txt? No. But, it might help more if you gave an explanation of what you are trying to do? The first problem is t

RE: [CMake] disabling the cache

2007-10-31 Thread Torsten Martinsen
Jesper Eskilson <> wrote: > The first problem is that the Visual Studio generator fails to > properly rerun CMake when CMakeLists.txt. It reruns CMake, but the > modified projects files are not reloaded before continuing with the > build. Unfortunately, there is no way of forcing Visual Studio to

Re: [CMake] disabling the cache

2007-10-31 Thread Jesper Eskilson
Bill Hoffman wrote: > Jesper Eskilson wrote: >> Hi people, >> >> Is there a way to disable the CMake cache, i.e. prevent CMake from >> generating or reading CMakeCache.txt? >> > > No. > > But, it might help more if you gave an explanation of what you are > trying to do? The first problem is that

Re: [CMake] disabling the cache

2007-10-31 Thread Bill Hoffman
Jesper Eskilson wrote: Hi people, Is there a way to disable the CMake cache, i.e. prevent CMake from generating or reading CMakeCache.txt? No. But, it might help more if you gave an explanation of what you are trying to do? -Bill ___ CMake maili

[CMake] disabling the cache

2007-10-31 Thread Jesper Eskilson
Hi people, Is there a way to disable the CMake cache, i.e. prevent CMake from generating or reading CMakeCache.txt? -- /Jesper ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake