[CMake] MSVC 2010

Mateusz Loskot mateusz at loskot.net
Tue Jan 18 12:03:42 EST 2011


On 18/01/11 16:09, Dominik Szczerba wrote:
> I mean the option -G to specify the target build system. In my cmake
> 2.8.3 there is only MSVC 2008.

Either your installation is broken or you have more than one version of 
CMake installed, very old for which you run cmake.exe --help and new 
which you are reporting as CMake 2.8.3 or you are reading the --help 
output incorrectly.

I have CMake 2.8.2 and "Visual Studio 10" generator is available:

C:\>cmake --help
cmake version 2.8.2
Usage

   cmake [options] <path-to-source>
   cmake [options] <path-to-existing-build>

Options
   -C <initial-cache>          = Pre-load a script to populate the cache.
   -D <var>:<type>=<value>     = Create a cmake cache entry.
   -U <globbing_expr>          = Remove matching entries from CMake cache.
   -G <generator-name>         = Specify a makefile generator.
   -Wno-dev                    = Suppress developer warnings.
   -Wdev                       = Enable developer warnings.
   -E                          = CMake command mode.
   -i                          = Run in wizard mode.
   -L[A][H]                    = List non-advanced cached variables.
   --build <dir>               = Build a CMake-generated project binary 
tree.
   -N                          = View mode only.
   -P <file>                   = Process script mode.
   --graphviz=[file]           = Generate graphviz of dependencies.
   --system-information [file] = Dump information about this system.
   --debug-trycompile          = Do not delete the try compile directories..
   --debug-output              = Put cmake in a debug mode.
   --trace                     = Put cmake in trace mode.
   --help-command cmd [file]   = Print help for a single command and exit.
   --help-command-list [file]  = List available listfile commands and exit.
   --help-commands [file]      = Print help for all commands and exit.
   --help-compatcommands [file]= Print help for compatibility commands.
   --help-module module [file] = Print help for a single module and exit.
   --help-module-list [file]   = List available modules and exit.
   --help-modules [file]       = Print help for all modules and exit.
   --help-custom-modules [file]= Print help for all custom modules and exit.
   --help-policy cmp [file]    = Print help for a single policy and exit.
   --help-policies [file]      = Print help for all policies and exit.
   --help-property prop [file] = Print help for a single property and exit.
   --help-property-list [file] = List available properties and exit.
   --help-properties [file]    = Print help for all properties and exit.
   --help-variable var [file]  = Print help for a single variable and exit.
   --help-variable-list [file] = List documented variables and exit.
   --help-variables [file]     = Print help for all variables and exit.
   --copyright [file]          = Print the CMake copyright and exit.
   --help                      = Print usage information and exit.
   --help-full [file]          = Print full help and exit.
   --help-html [file]          = Print full help in HTML format.
   --help-man [file]           = Print full help as a UNIX man page and 
exit.
   --version [file]            = Show program name/version banner and exit.

Generators

The following generators are available on this platform:
   Borland Makefiles           = Generates Borland makefiles.
   MSYS Makefiles              = Generates MSYS makefiles.
   MinGW Makefiles             = Generates a make file for use with
                                 mingw32-make.
   NMake Makefiles             = Generates NMake makefiles.
   NMake Makefiles JOM         = Generates JOM makefiles.
   Unix Makefiles              = Generates standard UNIX makefiles.
   Visual Studio 10            = Generates Visual Studio 10 project files.
   Visual Studio 10 Win64      = Generates Visual Studio 10 Win64 project
                                 files.
   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.
   Visual Studio 8 2005 Win64  = Generates Visual Studio .NET 2005 Win64
                                 project files.
   Visual Studio 9 2008        = Generates Visual Studio 9 2008 project 
files.
   Visual Studio 9 2008 Win64  = Generates Visual Studio 9 2008 Win64 
project
                                 files.
   Watcom WMake                = Generates Watcom WMake makefiles.
   CodeBlocks - MinGW Makefiles= Generates CodeBlocks project files.
   CodeBlocks - NMake Makefiles= Generates CodeBlocks project files.
   CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.
   Eclipse CDT4 - MinGW Makefiles
                               = Generates Eclipse CDT 4.0 project files.
   Eclipse CDT4 - NMake Makefiles
                               = Generates Eclipse CDT 4.0 project files.
   Eclipse CDT4 - Unix Makefiles
                               = Generates Eclipse CDT 4.0 project files.

Regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
Member of ACCU, http://accu.org


More information about the CMake mailing list