[CMake] Proposal for new generator options

Jochen Wilhelmy j.wilhelmy at arcor.de
Fri Jan 15 15:20:26 EST 2010


Hi!

This proposal addresses the following issue:
currently there is no solution for creating Visual Studio project
files for static runtime without editing the cmake files.
As the goal of cmake is to define a project in an abstract way it should
be possible to generate for static runtime only via the command line 
interface
since someone who never uses Visual Studio will probably not account
for this issue.

A solution could look like this:
split the -G option into three options, e.g.
-G the generator
-V the Version
- T the Target platfrom

some examples:
old: -G "Visual Studio 8 2005 Win64"
new:
-G "Visual Studio" -V 8 -T Win64
or equivalent
-G "Visual Studio" -V 2005 -T Win64

old: -G "Eclipse CDT4 - Unix Makefiles"
new: -G "Eclipse CDT" -V4 -T "Unix Makefiles"

in this new system the static runtime is a target:
-G "Visual Studio" -V 8 -T "Win32 static"

of course the old generator names can continue to exist
for backward compatibility.

What do you think?

-Jochen



More information about the CMake mailing list