MantisBT - CMake
View Issue Details
0014129CMakeCMakepublic2013-05-07 01:402013-10-07 10:09
Alexander Mohr 
Brad King 
normalmajoralways
closedfixed 
WindowsWindow7/8
CMake 2.8.10.2 
 
0014129: CMakeDetermineCompilerId.cmake is broken for VS 2011/2012 ARM targets
its missing the entry:
    elseif("${id_arch}" STREQUAL "ARM")
      set(id_machine_10 MachineARM)

in function(CMAKE_DETERMINE_COMPILER_ID_BUILD lang testflags src)

which causes it to not detect the compiler correctly
enter into VS 2011/2012 ARM command prompt. Then cmake . a simple cmake file like:
add_executable (helloDemo foo.c)

you'll get errors about cmake being unable to detect the compiler
I've verified adding the above fixes the issue.
No tags attached.
related to 0013511closed Brad King Add support for WinRT platforms and "metro" apps 
Issue History
2013-05-07 01:40Alexander MohrNew Issue
2013-05-07 09:33Brad KingNote Added: 0033003
2013-05-07 09:35Brad KingRelationship addedrelated to 0013511
2013-05-08 02:17Alexander MohrNote Added: 0033006
2013-05-08 09:18Brad KingNote Added: 0033007
2013-05-08 09:18Brad KingAssigned To => Brad King
2013-05-08 09:18Brad KingStatusnew => resolved
2013-05-08 09:18Brad KingResolutionopen => fixed
2013-10-07 10:09Robert MaynardNote Added: 0034043
2013-10-07 10:09Robert MaynardStatusresolved => closed

Notes
(0033003)
Brad King   
2013-05-07 09:33   
On what version did you make that change? With or without that change on current master (ff298fff) it fails to find the id and I see in CMakeFiles/CMakeError.log:

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms\ARM\PlatformToolsets\v110\Microsoft.Cpp.ARM.v110.targets(36,5): error MSB8022: Compiling Desktop applications for the ARM platform is not supported.
(0033006)
Alexander Mohr   
2013-05-08 02:17   
I was using the nightly cmake on VS2012 CTP for windows Blue (8.1) (which incidentally also has the v120 toolset...and only the nightly build lets you specify the -T v120 parameter correctly). To build native ARM you need to have the WOA SDK (Windows on ARM). I work for a large company so we have access to it, I'm not sure if its available publicly, it seems to be alluded to here in the Windows SDK: http://msdn.microsoft.com/en-us/windows/desktop/hh852363.aspx. [^] Let me know if you need any other info. If there's going to be a 2.10.x release I hope the -T fix makes it too. I can give logs too if needed.
(0033007)
Brad King   
2013-05-08 09:18   
Patch applied, thanks!

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e4c04652 [^]
(0034043)
Robert Maynard   
2013-10-07 10:09   
Closing resolved issues that have not been updated in more than 4 months.