Re: [cmake-developers] Unix makefile: concurrent build configurations
Hi Steve! On Do, 2016-08-18 at 15:37 -0500, Steve Lorimer wrote: > New to this list, so apologies if it's been discussed before. > > I'd like to know why it's not possible to have both debug and release mode > builds configured at the same time for Unix makefiles? You can have an arbitrary number of configurations at once, all nicely separated from each other in their own build directory. Nobody stops you from having several build directories after all. > I am aware that some generators (eg VisualStudio) do allow this behaviour. > Why can I not have the same behaviour with Unix makefiles? IMHO VisualStudio is rather broken in that regard. Please do not let the insanity pass over to Makefiles! :-) Best Regards, Tobias -- Tobias Hunger, Senior Software Engineer | The Qt Company The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin Geschäftsführer: Mika Pälsi, Juha Varelius, Mika Harjuaho. Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
Re: [cmake-developers] Unix makefile: concurrent build configurations
Well, I imagine we could have a shim that will automatically create sub-build directories when you specify a CONFIGURATION=... argument or just starts the build in there. And if a build folder is missing but the configuration is declared, it would run CMake with similar startup arguments. In practice, it would be the same generator, with some extra logic in the main Makefile. /Florent On 22/08/2016 13:55, Tobias Hunger wrote: Hi Steve! On Do, 2016-08-18 at 15:37 -0500, Steve Lorimer wrote: New to this list, so apologies if it's been discussed before. I'd like to know why it's not possible to have both debug and release mode builds configured at the same time for Unix makefiles? You can have an arbitrary number of configurations at once, all nicely separated from each other in their own build directory. Nobody stops you from having several build directories after all. I am aware that some generators (eg VisualStudio) do allow this behaviour. Why can I not have the same behaviour with Unix makefiles? IMHO VisualStudio is rather broken in that regard. Please do not let the insanity pass over to Makefiles! :-) Best Regards, Tobias -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers