Re: [CMake] Re: build types
On 24.09.07 04:18:22, Christian Buhtz wrote: > Andreas Pakulat schrieb: > >It works the same way as other make tools, just run "mingw32-make" in > >the build directory after having run cmake. > > So I was right to say that I have to generate a makefile for each buildtype? > Not with the names makefile_release.gcc, etc but as Release/makefile.gcc, > Debug/makefile.gcc, xx_yy/makefile.gcc, ...? You don't specify the Makefile-names, CMake will always generate a xy/Makefile so you don't have to use the -f parameter for (mingw32-|n|gnu-|...)make. Other than that, yes you're going to generate a builddir for each build type (a builddir usually contains more than just 1 Makefile) Andreas -- You may be recognized soon. Hide. ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
[CMake] Re: build types
Andreas Pakulat schrieb: It works the same way as other make tools, just run "mingw32-make" in the build directory after having run cmake. So I was right to say that I have to generate a makefile for each buildtype? Not with the names makefile_release.gcc, etc but as Release/makefile.gcc, Debug/makefile.gcc, xx_yy/makefile.gcc, ...? ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Re: build types
On 23.09.07 21:47:55, Christian Buhtz wrote: > Brandon Van Every schrieb: > >But once you've written that, it will generate files > >for dozens of different build systems. > > CMake not only generate makefiles it executes it for me? No. > I have never call mingw32-make manualy? It works the same way as other make tools, just run "mingw32-make" in the build directory after having run cmake. Andreas -- Don't you wish you had more energy... or less ambition? ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
[CMake] Re: build types
Brandon Van Every schrieb: But once you've written that, it will generate files for dozens of different build systems. CMake not only generate makefiles it executes it for me? I have never call mingw32-make manualy? ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Re: build types
On 23.09.07 20:50:48, Christian Buhtz wrote: > Andreas Pakulat schrieb: > >You can't. You specify the build type during cmake-time, using > >-DCMAKE_BUILD_TYPE=Debug|Release|... And thats quite ok > > So I need to create makefile like this: No. CMake will create the makefiles it needs. You just need to use two different builddirs for building release and debug versions. As I tried to explain earlier, CMake is not a tool to describe how a Makefile should look like (just in another tongue), but its a tool to describe how you want to build your library or application. CMake then generates files for various buildtools, like make, Visual Studio and so on, which are understood by those buildtools and will call the compiler in the way you want it. Andreas -- Your supervisor is thinking about you. ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
[CMake] Re: build types
Andreas Pakulat schrieb: You can't. You specify the build type during cmake-time, using -DCMAKE_BUILD_TYPE=Debug|Release|... And thats quite ok So I need to create makefile like this: makefile_release.gcc makefile_debug.gcc makefile_xx_yy_whatever.gcc ? ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake