diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-12-25 14:11:50 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-01-04 10:28:56 (GMT) |
commit | 6db7e6d24c68085f16dcf6d8a86ae0f74e9a1f01 (patch) | |
tree | 33cc0619cacca931691c3a7643f00d2ea262b281 /Tests/RunCMake | |
parent | 0bb3ca2874dee912e39d41c81ab2079f4a82c765 (diff) | |
download | CMake-6db7e6d24c68085f16dcf6d8a86ae0f74e9a1f01.zip CMake-6db7e6d24c68085f16dcf6d8a86ae0f74e9a1f01.tar.gz CMake-6db7e6d24c68085f16dcf6d8a86ae0f74e9a1f01.tar.bz2 |
add_dependencies: Disallow use with INTERFACE_LIBRARY.
Diffstat (limited to 'Tests/RunCMake')
4 files changed, 12 insertions, 0 deletions
diff --git a/Tests/RunCMake/interface_library/RunCMakeTest.cmake b/Tests/RunCMake/interface_library/RunCMakeTest.cmake index 0d00b71..d76600c 100644 --- a/Tests/RunCMake/interface_library/RunCMakeTest.cmake +++ b/Tests/RunCMake/interface_library/RunCMakeTest.cmake @@ -5,3 +5,4 @@ run_cmake(target_commands) run_cmake(no_shared_libs) run_cmake(whitelist) run_cmake(genex_link) +run_cmake(add_dependencies) diff --git a/Tests/RunCMake/interface_library/add_dependencies-result.txt b/Tests/RunCMake/interface_library/add_dependencies-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/interface_library/add_dependencies-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/interface_library/add_dependencies-stderr.txt b/Tests/RunCMake/interface_library/add_dependencies-stderr.txt new file mode 100644 index 0000000..c550b68 --- /dev/null +++ b/Tests/RunCMake/interface_library/add_dependencies-stderr.txt @@ -0,0 +1,6 @@ +CMake Error at add_dependencies.cmake:4 \(add_dependencies\): + add_dependencies Cannot add target-level dependencies to INTERFACE library + target "iface". + +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/interface_library/add_dependencies.cmake b/Tests/RunCMake/interface_library/add_dependencies.cmake new file mode 100644 index 0000000..12cdfb4 --- /dev/null +++ b/Tests/RunCMake/interface_library/add_dependencies.cmake @@ -0,0 +1,4 @@ + +add_library(foo empty.cpp) +add_library(iface INTERFACE) +add_dependencies(iface foo) |