[CMake] Controlling compiler flags.
David Cole
david.cole at kitware.com
Tue Mar 29 10:12:43 EST 2005
See also the CMake source code...
File: CMake/Source/cmake.cxx
Method: cmake::AddDefaultGenerators
Today's CVS revision of that method in cmake.cxx looks like this:
void cmake::AddDefaultGenerators()
{
#if defined(_WIN32) && !defined(__CYGWIN__)
m_Generators[cmGlobalVisualStudio6Generator::GetActualName()] =
&cmGlobalVisualStudio6Generator::New;
#if !defined(__MINGW32__)
m_Generators[cmGlobalVisualStudio7Generator::GetActualName()] =
&cmGlobalVisualStudio7Generator::New;
m_Generators[cmGlobalVisualStudio71Generator::GetActualName()] =
&cmGlobalVisualStudio71Generator::New;
m_Generators[cmGlobalVisualStudio8Generator::GetActualName()] =
&cmGlobalVisualStudio8Generator::New;
#endif
m_Generators[cmGlobalBorlandMakefileGenerator::GetActualName()] =
&cmGlobalBorlandMakefileGenerator::New;
m_Generators[cmGlobalNMakeMakefileGenerator::GetActualName()] =
&cmGlobalNMakeMakefileGenerator::New;
#endif
m_Generators[cmGlobalUnixMakefileGenerator::GetActualName()] =
&cmGlobalUnixMakefileGenerator::New;
#ifdef CMAKE_USE_XCODE
m_Generators[cmGlobalXCodeGenerator::GetActualName()] =
&cmGlobalXCodeGenerator::New;
#endif
#ifdef CMAKE_USE_KDEVELOP
m_Generators[cmGlobalKdevelopGenerator::GetActualName()] =
&cmGlobalKdevelopGenerator::New;
#endif
}
David Cole wrote:
> The command line "cmake --help" on your target platform will list the
> available generators in its output...
>
> On my cmake 2.0.5 on Windows, I get this:
>
> *Generators
>
> The following generators are available on this platform:
> Borland Makefiles = Generates Borland makefiles.
> NMake Makefiles = Generates NMake makefiles.
> Unix Makefiles = Generates standard UNIX makefiles.
> Visual Studio 6 = Generates Visual Studio 6 project files.
> Visual Studio 7 = Generates Visual Studio .NET 2002 project
> files.
> Visual Studio 7 .NET 2003 = Generates Visual Studio .NET 2003 project
> files.
> Visual Studio 8 2005 = Generates Visual Studio .NET 2005 project
> files.
> *
>
> David
>
>
> Shishir Ramam wrote:
>
>>Brad,
>>Thanks for the quick response.
>>
>>http://public.kitware.com/pipermail/cmake/2004-April/005071.html
>>is really the answer I was looking for.
>>
>>Since it is a string match, are all possible values of CMAKE_GENERATOR
>>documented someplace?
>>
>>-shishir
>>_______________________________________________
>>CMake mailing list
>>CMake at cmake.org
>>http://www.cmake.org/mailman/listinfo/cmake
>>
>>
>>
>>
>------------------------------------------------------------------------
>
>_______________________________________________
>CMake mailing list
>CMake at cmake.org
>http://www.cmake.org/mailman/listinfo/cmake
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20050329/62bdcc92/attachment.html
More information about the CMake
mailing list