MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0014899 | CMake | CMake | public | 2014-04-28 08:22 | 2014-11-03 08:38 |
Reporter | Kiron | ||||
Assigned To | Stephen Kelly | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | Windows | OS Version | 7 | |
Product Version | CMake 2.8.12.2 | ||||
Target Version | CMake 3.1 | Fixed in Version | CMake 3.1 | ||
Summary | 0014899: $<TARGET_PROPERTY:prop> with add_custom_target does not work | ||||
Description | When using the $<TARGET_PROPERTY:FOO> generator expression inside an add_custom_target command the following error is produced: CMake Error at CMakeLists.txt:6 (add_custom_target): Error evaluating generator expression: $<TARGET_PROPERTY:FOO> $<TARGET_PROPERTY:prop> may only be used with targets. It may not be used with add_custom_command. Specify the target to read a property from using the $<TARGET_PROPERTY:tgt,prop> signature instead. I would expect that with add_custom_target command the short hand form should work (like error message says already, ... may only be used with targets). | ||||
Steps To Reproduce | Save this as a CMakeLists.txt and run cmake: cmake_minimum_required(VERSION 2.8 FATAL_ERROR) project(Foo NONE) add_custom_target(foo COMMAND ${CMAKE_COMMAND} -E echo $<TARGET_PROPERTY:FOO> ) set_property(TARGET foo PROPERTY FOO "foobar") | ||||
Additional Information | Problem exists with cmake version 2.8.12.1, 3.0.20140422-g9f9532, and 3.0.20140424-gb4aa99 | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2014-04-28 08:22 | Kiron | New Issue | |||
2014-04-29 10:46 | Brad King | Note Added: 0035802 | |||
2014-04-29 17:08 | Stephen Kelly | Note Added: 0035806 | |||
2014-04-30 04:12 | Kiron | Note Added: 0035807 | |||
2014-04-30 08:34 | Brad King | Assigned To | => Stephen Kelly | ||
2014-04-30 08:34 | Brad King | Status | new => assigned | ||
2014-04-30 08:34 | Brad King | Target Version | => CMake 3.1 | ||
2014-05-28 17:06 | Stephen Kelly | Note Added: 0035961 | |||
2014-05-28 17:06 | Stephen Kelly | Status | assigned => resolved | ||
2014-05-28 17:06 | Stephen Kelly | Fixed in Version | => CMake 3.1 | ||
2014-05-28 17:06 | Stephen Kelly | Resolution | open => fixed | ||
2014-11-03 08:38 | Robert Maynard | Note Added: 0037150 | |||
2014-11-03 08:38 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|