summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-03-12 17:46:40 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-03-12 17:46:40 (GMT)
commit950541618c7ea1306ccdd1bb33f4582174309157 (patch)
treedbe761c4e1d7c08a9fce45bfe8ef567c7fed9c14 /Tests
parent51af6cbceae62a62a68e14317e2bac33a1df7b75 (diff)
parent1bdd1675776e6416b23cc6b308269aeb0831bb2e (diff)
downloadCMake-950541618c7ea1306ccdd1bb33f4582174309157.zip
CMake-950541618c7ea1306ccdd1bb33f4582174309157.tar.gz
CMake-950541618c7ea1306ccdd1bb33f4582174309157.tar.bz2
Merge topic 'fix-transitive-target-names'
1bdd167 Restore support for target names with '+' (#13986) 254687d Only process transitive interface properties for valid target names.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeCommands/target_link_libraries/CMakeLists.txt7
-rw-r--r--Tests/CMakeCommands/target_link_libraries/empty.cpp1
2 files changed, 8 insertions, 0 deletions
diff --git a/Tests/CMakeCommands/target_link_libraries/CMakeLists.txt b/Tests/CMakeCommands/target_link_libraries/CMakeLists.txt
index b13c13d..3881644 100644
--- a/Tests/CMakeCommands/target_link_libraries/CMakeLists.txt
+++ b/Tests/CMakeCommands/target_link_libraries/CMakeLists.txt
@@ -102,7 +102,14 @@ target_compile_definitions(depG INTERFACE
TEST_DEF
)
+
add_executable(targetC targetC.cpp)
+if(NOT BORLAND AND NOT WATCOM)
+ # Linking to a target containing a + should be non-fatal, though it does
+ # not work at all on Borland or watcom
+ add_library(wrapc++ empty.cpp)
+ target_link_libraries(targetC wrapc++)
+endif()
# The TARGET_PROPERTY expression is duplicated below to test that there is no
# shortcutting of the evaluation by returning an empty string.
set(_exe_test $<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>)
diff --git a/Tests/CMakeCommands/target_link_libraries/empty.cpp b/Tests/CMakeCommands/target_link_libraries/empty.cpp
new file mode 100644
index 0000000..ab32cf6
--- /dev/null
+++ b/Tests/CMakeCommands/target_link_libraries/empty.cpp
@@ -0,0 +1 @@
+// No content