MantisBT - CMake
View Issue Details
0013348CMakeCMakepublic2012-06-22 13:132013-03-04 08:38
ergo1 
Brad King 
normalblockalways
closedfixed 
WindowsWindows 8 RCBuild 8400
CMake 2.8.8 
CMake 2.8.10CMake 2.8.10 
0013348: Cmake not finding buld program for Visual Studio Express 2012 on Win8
CMake Error: CMake was unable to find a build program corresponding to "Visual Studio 11". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: Could not find cmake module file:E:/W8/BUILDS/ogrewinrt/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Could not find cmake module file:E:/W8/BUILDS/ogrewinrt/CMakeFiles/CMakeCXXCompiler.cmake
Configuring incomplete, errors occurred!
Try to make a sample Ogre3d project on Win8 for Visual Studio Express 2012 RC.
Same error with either the 32 or 64 bit build tool selection

Code developer advised:
"2. You need patched CMake 2.8.7 from Feb 23 2012 or later for
VS_WINRT_EXTENSIONS and VS_WINRT_REFERENCES special target properties."

My understanding is that this patch was incorporated into Cmake 2.8.8 (??)

PS: Code tested OK with above noted version of cmake on win8 consumer preview with Visual Studio 11 Ultimate Beta
No tags attached.
has duplicate 0013544closed Peter Kuemmel Visual Studio 2012 Express not supported 
Issue History
2012-06-22 13:13ergo1New Issue
2012-08-21 11:34Eugene GolushkovNote Added: 0030716
2012-08-23 18:25szxNote Added: 0030752
2012-08-27 04:15Eugene GolushkovNote Deleted: 0030716
2012-09-14 12:53David GolubNote Added: 0031031
2012-09-17 11:14Peter KuemmelAssigned To => Peter Kuemmel
2012-09-17 11:14Peter KuemmelStatusnew => assigned
2012-09-17 11:15Peter KuemmelNote Added: 0031035
2012-09-17 11:18Peter KuemmelNote Edited: 0031035bug_revision_view_page.php?bugnote_id=31035#r839
2012-09-18 11:48Brad KingRelationship addedhas duplicate 0013544
2012-09-18 11:49Brad KingNote Added: 0031044
2012-09-18 11:49Brad KingAssigned ToPeter Kuemmel => Brad King
2012-09-18 12:19Peter KuemmelNote Added: 0031046
2012-09-18 12:53Brad KingNote Added: 0031048
2012-09-18 14:14Brad KingNote Added: 0031051
2012-09-18 14:14Brad KingStatusassigned => resolved
2012-09-18 14:14Brad KingResolutionopen => fixed
2012-09-18 14:14Brad KingFixed in Version => CMake 2.8.10
2012-09-18 14:14Brad KingTarget Version => CMake 2.8.10
2013-03-04 08:38Robert MaynardNote Added: 0032452
2013-03-04 08:38Robert MaynardStatusresolved => closed

Notes
(0030752)
szx   
2012-08-23 18:25   
Same here:

CMake Error: CMake was unable to find a build program corresponding to "Visual Studio 11". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
(0031031)
David Golub   
2012-09-14 12:53   
I have encountered this bug as well. I'm using CMake 2.8.9, so it's not specific to CMake 2.8.7.
(0031035)
Peter Kuemmel   
2012-09-17 11:15   
(edited on: 2012-09-17 11:18)
Fixed in 'next', at least for Windows 7:
http://cmake.org/gitweb?p=stage/cmake.git;a=commitdiff;h=afa9fae06ef28d40f0d4b3b3e014e8dfe3b943e6 [^]

Could someone test on Win8?

(0031044)
Brad King   
2012-09-18 11:49   
The patch linked in 0013348:0031035 only affects selection of the default generator.

More work is needed to make the generator work with VS 2012 Express.
(0031046)
Peter Kuemmel   
2012-09-18 12:19   
I only get this errors when I'm not using a VS2012 "Command Prompt". Calling

C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat

with x86 or x86_amd64 fixes the issue. Should it work without using vcvarsall.bat?
(0031048)
Brad King   
2012-09-18 12:53   
Re 0013348:0031046: Yes, the IDE generators should work from the command line without loading any environment. I've got a patch locally that should work. I just need to finish running the tests in both VS 11 Professional and Express.
(0031051)
Brad King   
2012-09-18 14:14   
I've pushed out a commit that fixes the one from 0013348:0031035 to prefer VS 11 when VS 10 is also installed:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e17f3458 [^]

and a commit to make the VS 11 generator support VS 11 Express:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7ee3cee9 [^]

CMake builds and all tests pass with VS 11 Express for both 32-bit and 64-bit builds on Windows 7. This issue can be re-opened if there is still a problem on Windows 8.

(0032452)
Robert Maynard   
2013-03-04 08:38   
Closing resolved issues that have not been updated in more than 4 months.