summaryrefslogtreecommitdiffstats
path: root/Tests/IncludeDirectories
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-01-03 18:56:54 (GMT)
committerBrad King <brad.king@kitware.com>2013-01-07 19:03:51 (GMT)
commit119bf4bf7f1db2aea6afb64fff471d6994cadf44 (patch)
tree82b8bbb7b593df15fe3b63fa63ae03eeba7c36a6 /Tests/IncludeDirectories
parent2c4969a131fbdd949cac02520133b2c865b9fd78 (diff)
downloadCMake-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/IncludeDirectories')
-rw-r--r--Tests/IncludeDirectories/TargetIncludeDirectories/CMakeLists.txt6
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}")