diff options
author | Deniz Bahadir <dbahadir@benocs.com> | 2017-12-14 19:26:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-03-01 14:24:25 (GMT) |
commit | 9a7f039ee7d3f40d6d041fd0d1ef43f92faf8996 (patch) | |
tree | 9add3097e040194c966cc3b621514349863094fd /Tests/RunCMake/add_library | |
parent | dfb6e84082884f908ffad4594d2712d9edfd2cc0 (diff) | |
download | CMake-9a7f039ee7d3f40d6d041fd0d1ef43f92faf8996.zip CMake-9a7f039ee7d3f40d6d041fd0d1ef43f92faf8996.tar.gz CMake-9a7f039ee7d3f40d6d041fd0d1ef43f92faf8996.tar.bz2 |
objlib: Allow `OBJECT` libraries to link to `OBJECT` libraries.
Note: This still does not link the object-files of the `OBJECT` library
from the right-hand side of `target_link_libraries` to the target on the
left-hand side. (In this particular case of another `OBJECT` library on
the left-hand side this would not make any sense anyway. The target on
the left-hand side has no link-step.)
Issue: #14778
Diffstat (limited to 'Tests/RunCMake/add_library')
-rw-r--r-- | Tests/RunCMake/add_library/OBJECTwithOnlyObjectSources-result.txt | 1 | ||||
-rw-r--r-- | Tests/RunCMake/add_library/OBJECTwithOnlyObjectSources-stderr.txt | 10 |
2 files changed, 0 insertions, 11 deletions
diff --git a/Tests/RunCMake/add_library/OBJECTwithOnlyObjectSources-result.txt b/Tests/RunCMake/add_library/OBJECTwithOnlyObjectSources-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/add_library/OBJECTwithOnlyObjectSources-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/add_library/OBJECTwithOnlyObjectSources-stderr.txt b/Tests/RunCMake/add_library/OBJECTwithOnlyObjectSources-stderr.txt deleted file mode 100644 index 6183f80..0000000 --- a/Tests/RunCMake/add_library/OBJECTwithOnlyObjectSources-stderr.txt +++ /dev/null @@ -1,10 +0,0 @@ -^CMake Error at OBJECTwithOnlyObjectSources.cmake:[0-9]+ \(add_library\): - OBJECT library \"TestObjectLibWithoutSources\" contains: - - [^ -]*test(\.cpp)?\.o(bj)? - - but may contain only sources that compile, header files, and other files - that would not affect linking of a normal library. -Call Stack \(most recent call first\): - CMakeLists.txt:[0-9]+ \(include\)$ |