View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015208CMakeCMakepublic2014-10-16 06:142016-06-10 14:31
ReporterAntoine Bussy 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake 3.0.2 
Target VersionFixed in Version 
Summary0015208: set_source_files_properties and extensions
DescriptionSetting a property of source file "test.c" also sets the property of the source file named "test".

Reproduced with properties HEADER_FILE_ONLY and GENERATED.

Same problem is seen with .cpp extension but not .txt

I have attached a minimal example that reproduces the problem.
TagsNo tags attached.
Attached Filestxt file icon CMakeLists.txt [^] (930 bytes) 2014-10-16 06:14 [Show Content]

 Relationships

  Notes
(0037036)
Brad King (manager)
2014-10-16 08:48

For historical reasons source file names are matched by trying common extensions for sources of the enabled languages. So, the property is actually on "test.c", but looking up by the name "test" finds "test.c" too.

The matching implementation is here:

 http://www.cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmSourceFileLocation.cxx;hb=v3.0.2#l188 [^]

One day we may introduce a policy to get rid of this behavior.
(0042648)
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-10-16 06:14 Antoine Bussy New Issue
2014-10-16 06:14 Antoine Bussy File Added: CMakeLists.txt
2014-10-16 08:48 Brad King Note Added: 0037036
2016-06-10 14:29 Kitware Robot Note Added: 0042648
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team