View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014710CMakeCMakepublic2014-01-20 05:082016-06-10 14:31
ReporterEvgeny Grin 
Assigned ToPatrick R. Gansterer 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformPCOSWindowsOS Version
Product VersionCMake 2.8.12 
Target VersionFixed in Version 
Summary0014710: Wrong value in VS .vcxproj project file
DescriptionSame for Visual Studio 10/11/12.

Set additional properties for asm files by

set_source_files_properties(${SOURCE_ASMS} PROPERTIES COMPILE_FLAGS /W2)

CMake produce .vcxproj with wrong string

      <WarningLevel Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Level2</WarningLevel>

that fail to compile with error

error MSB3693: Unable to execute Xaml task. The value "Level2" specified for task parameter "WarningLevel" is not valid.

correct format is
      <WarningLevel Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">2</WarningLevel>
Tagsasm, masm, visual studio, windows
Attached Files

 Relationships
related to 0011536closedPatrick R. Gansterer Can't use assembler files with Visual Studio 10 generator 
related to 0014711closedAlex Neundorf CMAKE_ASM_MASM_FLAGS and CMAKE_ASM_MASM_FLAGS_xx have no effect 

  Notes
(0034963)
Evgeny Grin (reporter)
2014-01-20 05:14
edited on: 2014-01-20 12:09

This problem is only for .ASM files.
Full file configuration from CMake-generated .vcxproj file:

    <MASM Include="..\src\optm.asm" >
      <WarningLevel Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Level2</WarningLevel>
      <WarningLevel Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Level2</WarningLevel>
      <WarningLevel Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|Win32'">Level2</WarningLevel>
      <WarningLevel Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|Win32'">Level2</WarningLevel>
    </MASM>

If edited from "Level2" to "2", Visual Studio compile project without errors.

(0042466)
Kitware Robot (administrator)
2016-06-10 14:29

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2014-01-20 05:08 Evgeny Grin New Issue
2014-01-20 05:10 Evgeny Grin Tag Attached: asm
2014-01-20 05:10 Evgeny Grin Tag Attached: masm
2014-01-20 05:10 Evgeny Grin Tag Attached: visual studio
2014-01-20 05:10 Evgeny Grin Tag Attached: windows
2014-01-20 05:14 Evgeny Grin Note Added: 0034963
2014-01-20 09:05 Brad King Assigned To => Patrick R. Gansterer
2014-01-20 09:05 Brad King Status new => assigned
2014-01-20 09:05 Brad King Relationship added related to 0011536
2014-01-20 09:06 Brad King Relationship added related to 0014711
2014-01-20 12:09 Evgeny Grin Note Edited: 0034963
2016-06-10 14:29 Kitware Robot Note Added: 0042466
2016-06-10 14:29 Kitware Robot Status assigned => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team