Bug 261719 - textproc/kf5-syntax-highlighting: Not discoverable with cmake
Summary: textproc/kf5-syntax-highlighting: Not discoverable with cmake
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-04 19:50 UTC by Yuri Victorovich
Modified: 2022-02-05 08:18 UTC (History)
1 user (show)

See Also:
tcberner: maintainer-feedback+


Attachments
test-KSyntaxHighlighting.shar (2.22 KB, text/plain)
2022-02-04 19:50 UTC, Yuri Victorovich
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer freebsd_triage 2022-02-04 19:50:39 UTC
Created attachment 231557 [details]
test-KSyntaxHighlighting.shar

The attached project is the minimal example of using KSyntaxHighlighting.

Adding KF5SyntaxHighlighting to target_link_libraries() should be sufficient, but the project fails to find both KF5SyntaxHighlighting's headers and libraries.
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2022-02-04 19:51:16 UTC
cmake-3.22.1
kf5-syntax-highlighting-5.90.0
Comment 2 Tobias C. Berner freebsd_committer freebsd_triage 2022-02-05 06:35:44 UTC
(In reply to Yuri Victorovich from comment #1)
Moin moin 

Have you tried:

target_link_libraries(minimal Qt5::Widgets KF5::SyntaxHighlighting)

to use the imported target?

mfg Tobias
Comment 3 Yuri Victorovich freebsd_committer freebsd_triage 2022-02-05 08:18:22 UTC
(In reply to Tobias C. Berner from comment #2)

This works.
Thank you, Tobias!