summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-01-26 10:04:12 (GMT)
committerBrad King <brad.king@kitware.com>2013-01-29 15:56:09 (GMT)
commit5daaa5c48dc6066b5bb145aff30286cc63c12e81 (patch)
tree3570b98566d6f4dbaabc9a0205affbd55854f084 /Tests
parent48ab5050de1b60309744f894fd0e96b2db75b76f (diff)
downloadCMake-5daaa5c48dc6066b5bb145aff30286cc63c12e81.zip
CMake-5daaa5c48dc6066b5bb145aff30286cc63c12e81.tar.gz
CMake-5daaa5c48dc6066b5bb145aff30286cc63c12e81.tar.bz2
Fix TARGET_PROPERTY target extractions.
We need to make sure we can export targets which have content such as $<0:$<TARGET_PROPERTY:not_a_target,INTERFACE_INCLUDE_DIRECTORIES> That means making not finding a target non-fatal here.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/ExportImport/Export/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/ExportImport/Export/CMakeLists.txt b/Tests/ExportImport/Export/CMakeLists.txt
index eecfd6a..e3eac51 100644
--- a/Tests/ExportImport/Export/CMakeLists.txt
+++ b/Tests/ExportImport/Export/CMakeLists.txt
@@ -149,6 +149,8 @@ set_property(TARGET testLibRequired APPEND PROPERTY
$<BUILD_INTERFACE:$<TARGET_PROPERTY:testLibIncludeRequired4,INTERFACE_INCLUDE_DIRECTORIES>>
$<BUILD_INTERFACE:$<TARGET_PROPERTY:testLibIncludeRequired5,INTERFACE_INCLUDE_DIRECTORIES>>
$<INSTALL_INTERFACE:$<TARGET_PROPERTY:testLibIncludeRequired6,INTERFACE_INCLUDE_DIRECTORIES>>
+ # Test that the below is non-fatal
+ $<$<TARGET_DEFINED:not_a_target>:$<TARGET_PROPERTY:not_a_target,INTERFACE_INCLUDE_DIRECTORIES>>
)
set_property(TARGET testLibRequired APPEND PROPERTY