MantisBT - CMake
View Issue Details
0012436CMakeCMakepublic2011-08-31 10:462016-06-10 14:31
Andrew Wiggin 
Kitware Robot 
normalminoralways
closedmoved 
PCWindows7 (64-bit)
CMake 2.8.4 
 
0012436: Default project generation is inconsistent between cmake-gui and cmake (command line)
I start either cmake-gui or cmake from a command prompt that has is setup for compilation using VS10 64-bit compilers.

cmake-gui correctly detects the build environment and generates projects that are targeted at 64-bit, but cmake generates projects that are targeted at 32-bit.
on 64-bit machine with vs10 installed, from a 64-bit command prompt:

Type the following to setup a 64-bit environment (changing based on where vs10 is installed of course)
 "c:\program files (x86)\microsoft visual studio 10.0\vc\vcvarsall" x64

And then use cmake & cmake-gui to generate build files for your project, without changing any defaults. Load the projects into VS10 and compare the target platforms.
No tags attached.
Issue History
2011-08-31 10:46Andrew WigginNew Issue
2011-08-31 10:58Rolf Eike BeerNote Added: 0027311
2012-08-11 11:38David ColeStatusnew => backlog
2012-08-11 11:38David ColeNote Added: 0030300
2016-06-10 14:28Kitware RobotNote Added: 0041899
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0027311)
Rolf Eike Beer   
2011-08-31 10:58   
I assume you did

  cmake path/to/source

Which will tell cmake to build using the default generator. If you have some older version of MSVC installed in parallel this could as well be such one, e.g. I often saw MSVC6 projects being generated. The CMake command line interface isn't really designed to do such "fancy autodetection". If you want a MSVC10 x64 project then tell it:

  cmake -G "Visual Studio 10 Win64" path/to/source

(or however this generator is called)
(0030300)
David Cole   
2012-08-11 11:38   
Sending old, never assigned issues to the backlog.

(The age of the bug, plus the fact that it's never been assigned to anyone means that nobody is actively working on it...)

If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^]

It's easy to re-activate a bug here if you can find a CMake developer who has the bandwidth to take it on, and ferry a fix through to our 'next' branch for dashboard testing.
(0041899)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.