MantisBT - CMake
View Issue Details
0010652CMakeCMakepublic2010-04-30 14:352011-04-04 12:00
Robert Ioffe 
Bill Hoffman 
normalmajoralways
closedduplicate 
CMake-2-8 
CMake 2.8.4 
0010652: Wrong closing XML tag in project generations
For one of my projects, <CLInclude> tag is closed with </ClCompile> tag:

<ClInclude Include="..\..\..\tests\test_hardware_enum\affinity_resources.c">
      <CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">CompileAsC</CompileAs>
      <CompileAs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">CompileAsC</CompileAs>
      <CompileAs Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">CompileAsC</CompileAs>
      <CompileAs Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">CompileAsC</CompileAs>
    </ClCompile>


When I change ClCompile to ClInclude manually, I am able to load the project, but on later regenerations the issue reoccurs, obviously.
I use the following command after creating targets:
set_source_files_properties(test_hardware_enum_lrb.cpp affinity_resources.c PROPERTIES HEADER_FILE_ONLY true)

Not sure if that affects the situation
No tags attached.
duplicate of 0011404closed Bill Hoffman VS2010 generator broken by: set_source_files_properties(file.h PROPERTIES LANGUAGE "C") 
Issue History
2010-04-30 14:35Robert IoffeNew Issue
2010-04-30 14:36Robert IoffeNote Added: 0020496
2010-12-14 18:52David ColeAssigned To => Bill Hoffman
2010-12-14 18:52David ColeStatusnew => assigned
2010-12-14 18:52David ColeNote Added: 0024117
2010-12-14 18:52David ColeRelationship addedduplicate of 0011404
2010-12-14 18:52David ColeStatusassigned => resolved
2010-12-14 18:52David ColeFixed in Version => CMake 2.8.4
2010-12-14 18:52David ColeResolutionopen => duplicate
2011-04-04 12:00David ColeNote Added: 0026045
2011-04-04 12:00David ColeStatusresolved => closed

Notes
(0020496)
Robert Ioffe   
2010-04-30 14:36   
Forgot to add that I am using CMake 2.8.1 to generate Visual Studio 2010 64-bit projects
(0024117)
David Cole   
2010-12-14 18:52   
Duplicate bug is slated for fixing in CMake 2.8.4. Monitor that one to receive updates.
(0026045)
David Cole   
2011-04-04 12:00   
Closing resolved issues that have not been updated in more than 3 months.