diff options
author | Deniz Bahadir <dbahadir@benocs.com> | 2017-11-23 11:59:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-03-01 14:24:24 (GMT) |
commit | 51249e69eaab33fe43805b9fe2262b4ddab01b56 (patch) | |
tree | 1a33d55faf49c0bd9107ea4be7ac8efa756ebea2 /Tests/RunCMake/add_library | |
parent | e22c45d4c97c713734b8349132fa881f602f7ae3 (diff) | |
download | CMake-51249e69eaab33fe43805b9fe2262b4ddab01b56.zip CMake-51249e69eaab33fe43805b9fe2262b4ddab01b56.tar.gz CMake-51249e69eaab33fe43805b9fe2262b4ddab01b56.tar.bz2 |
objlib: Allow `OBJECT` libraries to link to other libraries.
The proper way to use libraries is now through `target_link_libraries`
for things such as usage requirements, compile definitions, include
directories, etc. To facilitate this, allow `OBJECT` libraries to "link"
to other libraries.
Co-Author: Ben Boeckel <ben.boeckel@kitware.com>
Issue: #14778
Diffstat (limited to 'Tests/RunCMake/add_library')
-rw-r--r-- | Tests/RunCMake/add_library/OBJECTwithNoSourcesButLinkObjects-stderr.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Tests/RunCMake/add_library/OBJECTwithNoSourcesButLinkObjects-stderr.txt b/Tests/RunCMake/add_library/OBJECTwithNoSourcesButLinkObjects-stderr.txt index cd6f1e0..1bcc114 100644 --- a/Tests/RunCMake/add_library/OBJECTwithNoSourcesButLinkObjects-stderr.txt +++ b/Tests/RunCMake/add_library/OBJECTwithNoSourcesButLinkObjects-stderr.txt @@ -1,5 +1,4 @@ -^CMake Error at OBJECTwithNoSourcesButLinkObjects.cmake:[0-9]+ \(target_link_libraries\): - Object library target \"TestObjectLibWithoutSources\" may not link to - anything. +^CMake Error at OBJECTwithNoSourcesButLinkObjects.cmake:[0-9]+ \(add_library\): + No SOURCES given to target: TestObjectLibWithoutSources Call Stack \(most recent call first\): CMakeLists.txt:[0-9]+ \(include\)$ |