| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0015208 | CMake | CMake | public | 2014-10-16 06:14 | 2016-06-10 14:31 | ||||
| Reporter | Antoine Bussy | ||||||||
| Assigned To | Kitware Robot | ||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||
| Status | closed | Resolution | moved | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | CMake 3.0.2 | ||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0015208: set_source_files_properties and extensions | ||||||||
| Description | Setting 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. | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | |||||||||
| Relationships | |
| 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. |
| Notes |
| 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 |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |