[cmake-developers] [CMake 0013131]: Checks for working C compiler (Visual Studio 2010) fail with any file
Mantis Bug Tracker
mantis at public.kitware.com
Fri Apr 13 19:14:39 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=13131
======================================================================
Reported By: James
Assigned To:
======================================================================
Project: CMake
Issue ID: 13131
Category: CMake
Reproducibility: always
Severity: major
Priority: high
Status: new
======================================================================
Date Submitted: 2012-04-13 19:14 EDT
Last Modified: 2012-04-13 19:14 EDT
======================================================================
Summary: Checks for working C compiler (Visual Studio 2010)
fail with any file
Description:
When I try to use CMake to generate Visual Studio 2010 project files, I get the
issue as outlined in the Additional Information section below. I tried on 2.8.7
and 2.8.8-rc2 and get the same result. Happens with ANY CMakeLists.txt file,
even one that only has the single line "cmake_minimum_required(VERSION 2.8)".
Steps to Reproduce:
1. Install CMake 2.8.7 for Windows x86.
2. Create file with just "cmake_minimum_required(VERSION 2.8)" inside it.
3. Open Visual Studio 2010 Command Prompt.
4. Navigate to folder.
5. Type "cmake ."
Additional Information:
C:\Server Storage\Projects\- Personal Projects\0x10c\kernel\cmake>cmake
--debug-trycompile -G "Visual Studio 10" "C:\Ser
ver Storage\Projects\- Personal Projects\0x10c\kernel\cmake"
debug trycompile on
-- Check for working C compiler using: Visual Studio 10
-- Check for working C compiler using: Visual Studio 10 -- broken
CMake Error at C:/Program Files (x86)/CMake
2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler "C:/Program Files (x86)/Microsoft Visual Studio
10.0/VC/bin/cl.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Server Storage/Projects/- Personal
Projects/0x10c/kernel/cmake/CMakeFiles/CMakeTmp
Run Build Command:C:\PROGRA~2\MICROS~2.0\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec159850540
Microsoft (R) Visual Studio Version 10.0.40219.1.
Copyright (C) Microsoft Corp. All rights reserved.
1>------ Build started: Project: cmTryCompileExec159850540, Configuration:
Debug Win32 ------
1>C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(147,5):
error MSB6001: Invalid command line switch for "CL.exe". Item has already
been added. Key in dictionary: 'TMP' Key being added: 'tmp'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
-- Configuring incomplete, errors occurred!
C:\Server Storage\Projects\- Personal Projects\0x10c\kernel\cmake>
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-04-13 19:14 James New Issue
2012-04-13 19:14 James File Added: bugreport.zip
======================================================================
More information about the cmake-developers
mailing list