MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0015338 | CMake | CMake | public | 2015-01-06 10:23 | 2015-06-01 08:38 |
Reporter | Matthias Maier | ||||
Assigned To | Stephen Kelly | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | CMake 3.1 | ||||
Target Version | CMake 3.1.1 | Fixed in Version | CMake 3.1.1 | ||
Summary | 0015338: Querying for (deprecated) LOCATION property prevents expansion of TARGET_OBJECTS generator expression | ||||
Description | Consider the following minimal project: foo.cc int main () {} CMakeLists.txt$<TARGET_OBJECTS:foo> add_library(foo OBJECT foo.cc) add_executable(bar $<TARGET_OBJECTS:foo>) get_target_property(location bar LOCATION) Starting with CMake 3.1 above example fails with an error message ("CMake Error: CMake can not determine linker language for target: bar") because the generator expression "$<TARGET_OBJECTS:foo>" does not get expanded and thus the final link line is empty. Not querying for the LOCATION property fixes this. This bug is not present in CMake 3.0.* or 2.8.*. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2015-01-06 10:23 | Matthias Maier | New Issue | |||
2015-01-08 12:42 | Brad King | Assigned To | => Stephen Kelly | ||
2015-01-08 12:42 | Brad King | Status | new => assigned | ||
2015-01-11 13:17 | Stephen Kelly | Note Added: 0037663 | |||
2015-01-12 20:09 | Stephen Kelly | Note Added: 0037674 | |||
2015-01-12 20:09 | Stephen Kelly | Status | assigned => resolved | ||
2015-01-12 20:09 | Stephen Kelly | Fixed in Version | => CMake 3.1.1 | ||
2015-01-12 20:09 | Stephen Kelly | Resolution | open => fixed | ||
2015-01-13 16:07 | Brad King | Note Added: 0037679 | |||
2015-01-13 16:07 | Brad King | Target Version | => CMake 3.1.1 | ||
2015-06-01 08:38 | Robert Maynard | Note Added: 0038836 | |||
2015-06-01 08:38 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|