View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011006CMakeCMakepublic2010-07-17 10:572016-06-10 14:31
ReporterJens Weggemann 
Assigned ToBill Hoffman 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in Version 
Summary0011006: Visual Studio 10 generator ignores SOURCES of a custom target
DescriptionDefining a custom target like this:
ADD_CUSTOM_TARGET( foo SOURCES a.cpp b.h )
does not add the 2 source files to the generated Visual Studio 10 project.
Additional InformationThe problem seems to be the following lines in cmVisualStudio10TargetGenerator.cxx:

void cmVisualStudio10TargetGenerator::WriteCLSources()
{
  if(this->Target->GetType() > cmTarget::MODULE_LIBRARY)
    {
    return;
    }

This seems wrong as utility targets may have sources.
Replacing cmTarget::MODULE_LIBRARY with cmTarget::UTILITY fixes this for me.
TagsNo tags attached.
Attached Files

 Relationships
related to 0010654closedBill Hoffman Adding sources to ALL_BUILD project doesn't work in VS2010 

  Notes
(0021417)
Jens Weggemann (reporter)
2010-07-17 10:59

Bug 0010654 reads like it may have the same cause.
(0041730)
Kitware Robot (administrator)
2016-06-10 14:28

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
2010-07-17 10:57 Jens Weggemann New Issue
2010-07-17 10:59 Jens Weggemann Note Added: 0021417
2010-12-15 10:42 David Cole Relationship added related to 0010654
2010-12-15 10:44 David Cole Assigned To => Bill Hoffman
2010-12-15 10:44 David Cole Status new => assigned
2016-06-10 14:28 Kitware Robot Note Added: 0041730
2016-06-10 14:28 Kitware Robot Status assigned => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team