Notes |
|
(0017501)
|
Brad King
|
2009-09-14 18:24
|
|
CMake does recognize targets if they are the COMMAND executable:
add_executable(mycopy ...)
add_custom_command(
OUTPUT out.txt
DEPENDS in.txt
COMMAND mycopy ...
)
We cannot automatically convert the plain string "foo" in the middle of an argument list...it is ambiguous. However, there does need to be a way to get CMake to replace a token in an argument with information about the target location.
In CMake HEAD from CVS, the add_test() command has a new signature that support a "generator expression" syntax for just this purpose. An argument of this syntax:
$<TARGET_FILE:myexe>
is replaced with the per-configuration target location which is not known until generate time. I've been meaning to teach add_custom_command about this syntax but it's not yet done. I'll update this issue when it is. |
|
|
(0027525)
|
David Cole
|
2011-10-05 10:17
|
|
The fix for 0011209 added "generator expressions" to CMake 2.8.4
You may use generator expressions to get target file and directory names using CMake 2.8.4 and later. |
|
|
(0027526)
|
David Cole
|
2011-10-05 12:54
|
|
This was fixed at the same time as related bug 0011209 - the fix for that one provides a superset of the functionality needed to fix this one...
Use the generator expressions available in 2.8.4 and later to provide custom commands with arguments derived from the target properties. |
|
|
(0028819)
|
David Cole
|
2012-03-06 08:37
|
|
Closing resolved issues that have not been updated in more than 4 months. |
|