Add test for custom command with a genex referring to a target.

This test failed before d8a59ea4 (Port cmGeneratorExpression to
cmTarget from cmGeneratorTarget, 2012-10-27), and passes after.
This commit is contained in:
Stephen Kelly 2013-01-03 19:56:54 +01:00 committed by Brad King
parent 2c4969a131
commit 119bf4bf7f
1 changed files with 6 additions and 0 deletions

View File

@ -45,3 +45,9 @@ set_property(TARGET TargetIncludeDirectories
APPEND PROPERTY INCLUDE_DIRECTORIES
"$<TARGET_PROPERTY:somelib::withcolons,INTERFACE_INCLUDE_DIRECTORIES>"
)
add_custom_target(test_custom_target
"some_bogus_custom_tool"
$<TARGET_PROPERTY:TargetIncludeDirectories,COMPILE_DEFINITIONS>
WORKING_DIRECTORY
"${CMAKE_CURRENT_SOURCE_DIR}")