diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-01-03 18:56:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-01-07 19:03:51 (GMT) |
commit | 119bf4bf7f1db2aea6afb64fff471d6994cadf44 (patch) | |
tree | 82b8bbb7b593df15fe3b63fa63ae03eeba7c36a6 /Tests | |
parent | 2c4969a131fbdd949cac02520133b2c865b9fd78 (diff) | |
download | CMake-119bf4bf7f1db2aea6afb64fff471d6994cadf44.zip CMake-119bf4bf7f1db2aea6afb64fff471d6994cadf44.tar.gz CMake-119bf4bf7f1db2aea6afb64fff471d6994cadf44.tar.bz2 |
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.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/IncludeDirectories/TargetIncludeDirectories/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/IncludeDirectories/TargetIncludeDirectories/CMakeLists.txt b/Tests/IncludeDirectories/TargetIncludeDirectories/CMakeLists.txt index 7cb1b42..3044abd 100644 --- a/Tests/IncludeDirectories/TargetIncludeDirectories/CMakeLists.txt +++ b/Tests/IncludeDirectories/TargetIncludeDirectories/CMakeLists.txt @@ -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}") |