MantisBT - CMake
View Issue Details
0009236CMakeCMakepublic2009-07-06 14:342016-06-10 14:30
Curtis Rueden 
Bill Hoffman 
normalminoralways
closedmoved 
CMake-2-6 
 
0009236: CMake does not pick a good default generator on windows
On a Windows XP system with CMake 2.6-patch 4 and Visual C++ 2008 Express, cmake does not work out of the box, complaining that CMAKE_MAKE_PROGRAM is not set. The cmake-gui will use the registry to figure out which version of Visual Studio is installed and use that as a default. If you give no -G to cmake on windows it defaults to VS6 right now.
Example:

C:\test>cmake C:\src\InsightToolkit-3.14.0
CMake Error: CMake was unable to find a build program corresponding to "Visual Studio 6". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: Could not find cmake module file:C:/test/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Could not find cmake module file:C:/test/CMakeFiles/CMakeCXXCompiler.cmake
-- Configuring incomplete, errors occurred!

Workaround: Use cmake-gui, as it allows explicit selection of Visual C++ 2008 Express.
No tags attached.
Issue History
2009-07-06 14:34Curtis RuedenNew Issue
2009-07-06 15:37Bill HoffmanStatusnew => assigned
2009-07-06 15:37Bill HoffmanAssigned To => Bill Hoffman
2009-07-06 15:39Bill HoffmanSummaryCMake fails by default with Visual C++ 2008 Express => CMake does not pick a good default generator on windows
2009-07-06 15:39Bill HoffmanDescription Updated
2016-06-10 14:27Kitware RobotNote Added: 0041576
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:30Kitware RobotStatusresolved => closed

Notes
(0041576)
Kitware Robot   
2016-06-10 14:27   
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.