Re: [cmake-developers] visual studio usage
I will probably complain from now until it's fixed with a perference (which will probably mean me writing a patch; but... ) Devenv has a side effect that msbuild does not; devenv writes to the most recently used projects, msbuild does not. So I can keep using visual studio to build my other c# projects that I work on, and even have references to them in most recently used. I have added to my toplevel cmakes a check for msbuild to set that before the cmake default script checks; but this doesn't fix the CMAKE_TRY_COMPILE.sln that's used by cmake itself; so running a series of builds ends up basically obliterating the most recently used files with CMAKE_TRY_COMPILE's. On Fri, Jun 1, 2012 at 3:49 PM, J Decker d3c...@gmail.com wrote: shouldn't cmake use 'msbuild' instead of 'devenv.com' or 'devenv.exe'? I have a feeling that would solve one of my issues with visual studio, in that after building a long chain of cmake projects using visual studio, all of the most recent project references are updated to being the projects that were built, thereby losing the projects I'm actually working on. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
Re: [cmake-developers] visual studio usage
There are two reasons this is an issue (for me) 1) using devenv to build is MUCH slower on many of the projects than just using MSBuild. ... yes I know, longer build times mean more time at the water cooler or whatever... 2) Using devenv, each project that gets built becomes a most-recently-used file for visual studio, so the things I'm actually working on (not the dozens of projects that get built with automated method) get lost; they get shoved off the list of recently used files pretty quick. On Thu, Jun 7, 2012 at 9:22 AM, J Decker d3c...@gmail.com wrote: Okay I saw the comments in the platform scripts about fortran, but maybe a symbol could be added to maybe prefer msbuild; there are a couple like that for InstallSystemRuntimeLibraries or whatever that was... so you can control the behavior. The other alternative might be add additional options for generators that prefer one or the other. if( PREFER_MSBUILD ) On Sat, Jun 2, 2012 at 2:17 PM, Pau Garcia i Quiles pgqui...@elpauer.org wrote: Hi, It will probably introduce other problems: MsBuild woes http://www.elpauer.org/?p=955 On Sat, Jun 2, 2012 at 12:49 AM, J Decker d3c...@gmail.com wrote: shouldn't cmake use 'msbuild' instead of 'devenv.com' or 'devenv.exe'? I have a feeling that would solve one of my issues with visual studio, in that after building a long chain of cmake projects using visual studio, all of the most recent project references are updated to being the projects that were built, thereby losing the projects I'm actually working on. -- Pau Garcia i Quiles http://www.elpauer.org (Due to my workload, I may need 10 days to answer) -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
Re: [cmake-developers] visual studio usage
I mean using cmake --build . and/or getting BUILD_COMMAND from cmake which comes back as devenv which is then used to build projects. I had a bunch of cmake projects that built from a batch file, then I made a cmakelists that does the same thing, so I have one cmakelists.txt which builds all other top level cmakelists. On Fri, Jun 8, 2012 at 9:11 AM, Pau Garcia i Quiles pgqui...@elpauer.org wrote: Hi, Sorry but it's not clear to me: when you say using devenv do you mean opening the IDE, or do you mean calling devenv form the command-line like devenv /build Debug mysolution.sln? The former is slow due to IntelliSense, ReSharper, etc but the latter is very fast. On Fri, Jun 8, 2012 at 5:59 PM, J Decker d3c...@gmail.com wrote: There are two reasons this is an issue (for me) 1) using devenv to build is MUCH slower on many of the projects than just using MSBuild. ... yes I know, longer build times mean more time at the water cooler or whatever... 2) Using devenv, each project that gets built becomes a most-recently-used file for visual studio, so the things I'm actually working on (not the dozens of projects that get built with automated method) get lost; they get shoved off the list of recently used files pretty quick. On Thu, Jun 7, 2012 at 9:22 AM, J Decker d3c...@gmail.com wrote: Okay I saw the comments in the platform scripts about fortran, but maybe a symbol could be added to maybe prefer msbuild; there are a couple like that for InstallSystemRuntimeLibraries or whatever that was... so you can control the behavior. The other alternative might be add additional options for generators that prefer one or the other. if( PREFER_MSBUILD ) On Sat, Jun 2, 2012 at 2:17 PM, Pau Garcia i Quiles pgqui...@elpauer.org wrote: Hi, It will probably introduce other problems: MsBuild woes http://www.elpauer.org/?p=955 On Sat, Jun 2, 2012 at 12:49 AM, J Decker d3c...@gmail.com wrote: shouldn't cmake use 'msbuild' instead of 'devenv.com' or 'devenv.exe'? I have a feeling that would solve one of my issues with visual studio, in that after building a long chain of cmake projects using visual studio, all of the most recent project references are updated to being the projects that were built, thereby losing the projects I'm actually working on. -- Pau Garcia i Quiles http://www.elpauer.org (Due to my workload, I may need 10 days to answer) -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers -- Pau Garcia i Quiles http://www.elpauer.org (Due to my workload, I may need 10 days to answer) -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
Re: [cmake-developers] visual studio usage
J Decker d3c...@gmail.com writes: I mean using cmake --build . and/or getting BUILD_COMMAND from cmake which comes back as devenv which is then used to build projects. I had a bunch of cmake projects that built from a batch file, then I made a cmakelists that does the same thing, so I have one cmakelists.txt which builds all other top level cmakelists. cmake -DCMAKE_MAKE_PROGRAM=msbuild . ? -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
Re: [cmake-developers] visual studio usage
On Fri, Jun 8, 2012 at 6:26 PM, Óscar Fuentes o...@wanadoo.es wrote: J Decker d3c...@gmail.com writes: I mean using cmake --build . and/or getting BUILD_COMMAND from cmake which comes back as devenv which is then used to build projects. I had a bunch of cmake projects that built from a batch file, then I made a cmakelists that does the same thing, so I have one cmakelists.txt which builds all other top level cmakelists. cmake -DCMAKE_MAKE_PROGRAM=msbuild . ? Sometimes that will fail due to the different way msbuild and devenv compute project dependencies. -- Pau Garcia i Quiles http://www.elpauer.org (Due to my workload, I may need 10 days to answer) -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
Re: [cmake-developers] visual studio usage
I woudl rather have it discover it for the appropriate version of visual studio I select as a generator, I have already copied the findprogram code from the script and put it at the head of a couple of the scripts, but this doesn't fix that the outer layer is still being built with devenv. I don't really want to build a find_program function for batch files On Fri, Jun 8, 2012 at 9:37 AM, Pau Garcia i Quiles pgqui...@elpauer.org wrote: On Fri, Jun 8, 2012 at 6:26 PM, Óscar Fuentes o...@wanadoo.es wrote: J Decker d3c...@gmail.com writes: I mean using cmake --build . and/or getting BUILD_COMMAND from cmake which comes back as devenv which is then used to build projects. I had a bunch of cmake projects that built from a batch file, then I made a cmakelists that does the same thing, so I have one cmakelists.txt which builds all other top level cmakelists. cmake -DCMAKE_MAKE_PROGRAM=msbuild . ? Sometimes that will fail due to the different way msbuild and devenv compute project dependencies. -- Pau Garcia i Quiles http://www.elpauer.org (Due to my workload, I may need 10 days to answer) -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
Re: [cmake-developers] visual studio usage
Okay I saw the comments in the platform scripts about fortran, but maybe a symbol could be added to maybe prefer msbuild; there are a couple like that for InstallSystemRuntimeLibraries or whatever that was... so you can control the behavior. The other alternative might be add additional options for generators that prefer one or the other. if( PREFER_MSBUILD ) On Sat, Jun 2, 2012 at 2:17 PM, Pau Garcia i Quiles pgqui...@elpauer.org wrote: Hi, It will probably introduce other problems: MsBuild woes http://www.elpauer.org/?p=955 On Sat, Jun 2, 2012 at 12:49 AM, J Decker d3c...@gmail.com wrote: shouldn't cmake use 'msbuild' instead of 'devenv.com' or 'devenv.exe'? I have a feeling that would solve one of my issues with visual studio, in that after building a long chain of cmake projects using visual studio, all of the most recent project references are updated to being the projects that were built, thereby losing the projects I'm actually working on. -- Pau Garcia i Quiles http://www.elpauer.org (Due to my workload, I may need 10 days to answer) -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
Re: [cmake-developers] visual studio usage
On 6/1/2012 6:49 PM, J Decker wrote: shouldn't cmake use 'msbuild' instead of 'devenv.com' or 'devenv.exe'? I have a feeling that would solve one of my issues with visual studio, in that after building a long chain of cmake projects using visual studio, all of the most recent project references are updated to being the projects that were built, thereby losing the projects I'm actually working on. Trouble is things like Intel Fortran do not work with msbuild. Not sure how to fix that. I suppose we could create a special generator that had VS Fortran support. Not sure if there are other third party plugins that do not work with msbuild either. -Bill -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
[cmake-developers] visual studio usage
shouldn't cmake use 'msbuild' instead of 'devenv.com' or 'devenv.exe'? I have a feeling that would solve one of my issues with visual studio, in that after building a long chain of cmake projects using visual studio, all of the most recent project references are updated to being the projects that were built, thereby losing the projects I'm actually working on. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers