summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/interface_library
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-11-20 09:58:15 (GMT)
committerBrad King <brad.king@kitware.com>2013-10-08 00:07:27 (GMT)
commit435c912848b08333e03c74439f725c9b96890d80 (patch)
treeef1aaad7af3149558792db8209feef24e31f509a /Tests/RunCMake/interface_library
parentfe732264e9abb6249d1d112b24ce36b226590105 (diff)
downloadCMake-435c912848b08333e03c74439f725c9b96890d80.zip
CMake-435c912848b08333e03c74439f725c9b96890d80.tar.gz
CMake-435c912848b08333e03c74439f725c9b96890d80.tar.bz2
export: Add support for INTERFACE_LIBRARY targets
Diffstat (limited to 'Tests/RunCMake/interface_library')
-rw-r--r--Tests/RunCMake/interface_library/invalid_name-stderr.txt6
-rw-r--r--Tests/RunCMake/interface_library/invalid_name.cmake2
2 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/interface_library/invalid_name-stderr.txt b/Tests/RunCMake/interface_library/invalid_name-stderr.txt
index c66e080..e14fcde 100644
--- a/Tests/RunCMake/interface_library/invalid_name-stderr.txt
+++ b/Tests/RunCMake/interface_library/invalid_name-stderr.txt
@@ -7,3 +7,9 @@ CMake Error at invalid_name.cmake:4 \(add_library\):
add_library Invalid name for INTERFACE library target: iface::target
Call Stack \(most recent call first\):
CMakeLists.txt:3 \(include\)
++
+CMake Error at invalid_name.cmake:6 \(add_library\):
+ add_library Invalid name for IMPORTED INTERFACE library target:
+ if\$target_imported
+Call Stack \(most recent call first\):
+ CMakeLists.txt:3 \(include\)
diff --git a/Tests/RunCMake/interface_library/invalid_name.cmake b/Tests/RunCMake/interface_library/invalid_name.cmake
index 51a109d..9a965aa 100644
--- a/Tests/RunCMake/interface_library/invalid_name.cmake
+++ b/Tests/RunCMake/interface_library/invalid_name.cmake
@@ -2,3 +2,5 @@
add_library(if$ace INTERFACE)
add_library(iface::target INTERFACE)
+
+add_library(if$target_imported INTERFACE IMPORTED)