[cmake-developers] [CMake 0015228]: Compiler identification fails with -DCMAKE_SYSTEM_NAME=WindowsStore

Mantis Bug Tracker mantis at public.kitware.com
Wed Oct 29 17:32:53 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15228 
====================================================================== 
Reported By:                Remi
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15228
Category:                   CMake
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-10-29 17:32 EDT
Last Modified:              2014-10-29 17:32 EDT
====================================================================== 
Summary:                    Compiler identification fails with
-DCMAKE_SYSTEM_NAME=WindowsStore
Description: 
cmake version 3.1.0-rc1

I tried to generate a project with the command line below:

cmake -G "Visual Studio 12 2013" -DCMAKE_SYSTEM_NAME=WindowsStore
-DCMAKE_SYSTEM_VERSION=8.0

and it fails with:

-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:3 (project):
  No CMAKE_C_COMPILER could be found.



CMake Error at CMakeLists.txt:3 (project):
  No CMAKE_CXX_COMPILER could be found.



-- Configuring incomplete, errors occurred!
See also "[censored]/CMakeFiles/CMakeOutput.log".
See also "[censored]/CMakeFiles/CMakeError.log".

I checked the files to understand the error.

 C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets(64,5):
error MSB8020: The build tools for Visual Studio 2012 (Platform Toolset =
'v110') cannot be found. To build using the v110 build tools, please install
Visual Studio 2012 build tools.  Alternatively, you may upgrade to the current
Visual Studio tools by selecting the Project menu or right-click the solution,
and then selecting "Upgrade Solution...".

I believe the error is that 'v110' in the project file should be 'v120'.

Steps to Reproduce: 
cmake -G "Visual Studio 12 2013" -DCMAKE_SYSTEM_NAME=WindowsStore
-DCMAKE_SYSTEM_VERSION=8.0

Installed on my machine:
 VS Express 2013 for Desktop
 VS Express 2013 for Windows 
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-10-29 17:32 Remi           New Issue                                    
======================================================================



More information about the cmake-developers mailing list