View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014070CMakeCMakepublic2013-04-10 10:532013-10-07 10:09
ReporterJarle Aase 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionunable to reproduce 
PlatformVisual Studio 11 Update 1OSWindowsOS Version7 x64
Product VersionCMake 2.8.10.2 
Target VersionFixed in Version 
Summary0014070: CMake with Visual Studio 2012 broken
DescriptionAfter re-install of Visual Studio 2012 with all updates, CMake can no longer configure projects for this compiler. It appears like CMake tries to use some "manifest:embed" option, which is no longer supported.
Steps To ReproduceJust configure a project for Visual Studio 11.
 I used the CMakeLists.txt file below:

  cmake_minimum_required (VERSION 2.8)
  add_executable(test test.cpp)

Additional InformationOutput from CMake:

The C compiler identification is MSVC 17.0.51106.1
The CXX compiler identification is MSVC 17.0.51106.1
Check for working C compiler using: Visual Studio 11
Check for working C compiler using: Visual Studio 11 -- broken
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "C:/Program Files (x86)/Microsoft Visual Studio
  11.0/VC/bin/cl.exe" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: C:/tmp/testCmake/build/CMakeFiles/CMakeTmp

  

  Run Build Command:C:\PROGRA~2\MICROS~2.0\Common7\IDE\devenv.com
  CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec3319963856

  

  Microsoft (R) Microsoft Visual Studio 2012 Version 11.0.51106.1.

  Copyright (C) Microsoft Corp. All rights reserved.

  1>------ Build started: Project: cmTryCompileExec3319963856, Configuration:
  Debug Win32 ------

  1> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01
  for 80x86

  1> Copyright (C) Microsoft Corporation. All rights reserved.

  1>

  1> cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D
  "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise
  /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec3319963856.dir\Debug\\"
  /Fd"cmTryCompileExec3319963856.dir\Debug\vc110.pdb" /Gd /TC /analyze-
  /errorReport:prompt testCCompiler.c

  1>

  1> testCCompiler.c

  1>LINK : fatal error LNK1117: syntax error in option 'manifest:embed'

  ========== 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!
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0032796)
Brad King (manager)
2013-04-10 10:57

I recently updated to

 Version 11.0.60315.01 Update 2

It builds CMake and passes all tests.

Something is strange about your setup. The output you report starts with

 The C compiler identification is MSVC 17.0.51106.1

but later the error message says:

 Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01
(0033094)
Jarle Aase (reporter)
2013-05-18 06:02

I tried to reproduce by installing VC 8 SP 1 and VC 11 Update 2 in a VM.

In the VM, CMake works fine.
(0034055)
Robert Maynard (manager)
2013-10-07 10:09

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2013-04-10 10:53 Jarle Aase New Issue
2013-04-10 10:57 Brad King Note Added: 0032796
2013-05-18 06:02 Jarle Aase Note Added: 0033094
2013-05-22 14:30 Brad King Status new => resolved
2013-05-22 14:30 Brad King Resolution open => unable to reproduce
2013-10-07 10:09 Robert Maynard Note Added: 0034055
2013-10-07 10:09 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team