Bug 404835 - Cmake error: Object library target "SyntaxHighlightingData" may not link to anything.
Summary: Cmake error: Object library target "SyntaxHighlightingData" may not link to a...
Status: RESOLVED FIXED
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: framework (other bugs)
Version First Reported In: unspecified
Platform: Neon Linux
: NOR major
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-26 10:15 UTC by Nikita Sirgienko
Modified: 2019-03-04 18:50 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Sirgienko 2019-02-26 10:15:45 UTC
SUMMARY
On my machine current master unbuildable, because cmake produce this error:

CMake Error at data/CMakeLists.txt:68 (target_link_libraries):
  Object library target "SyntaxHighlightingData" may not link to anything.


STEPS TO REPRODUCE
1. mkdir build && cd build
2. cmake ..

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 5.13 (KDE Neon 16.04.6)
(available in About System)
KDE Plasma Version: 5.14.0
KDE Frameworks Version: 5.50.0
Qt Version: 5.11.1

ADDITIONAL INFORMATION
Comment 1 Christoph Cullmann 2019-03-04 18:50:33 UTC
Git commit 84d78a055beb8e7eda967b2cb2b4b27c78d5abde by Christoph Cullmann.
Committed on 04/03/2019 at 18:50.
Pushed by cullmann into branch 'master'.

guard target link libraries for older CMake version

require some version where this works, here at least 3.13

M  +4    -1    data/CMakeLists.txt

https://commits.kde.org/syntax-highlighting/84d78a055beb8e7eda967b2cb2b4b27c78d5abde