Re: [CMake] Re: build types

2007-09-23 Thread Andreas Pakulat
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


Re: [CMake] Re: build types

2007-09-23 Thread Andreas Pakulat
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


Re: [CMake] Re: build types

2007-09-23 Thread Andreas Pakulat
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