Summary: | cmake qt4 should include x11-xcb in summary | ||
---|---|---|---|
Product: | [Plasma] Breeze | Reporter: | Harald Sitter <sitter> |
Component: | QStyle | Assignee: | David Edmundson <kde> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | hugo.pereira.da.costa, kde |
Priority: | NOR | ||
Version First Reported In: | 5.3.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/oxygen/25e1fbd0f9b35955c837dbe659d4ed661fef51dd | Version Fixed In: | |
Sentry Crash Report: |
Description
Harald Sitter
2015-05-08 09:59:32 UTC
Also affects Oxygen see bug #347419 Hi Harald, The issue here is that the kde4 build uses pkgconfig to look for xcb, because the nice CMake FindPackage(XCB) stuff, is not available (as far as I know) for kde4 Then, in turn, I do not know the equivalent to set_package_properties for stuff found with pkg_check_modules(). Anyone with enough CMake FOO ? Hugo It's available, you just have to add a custom cmake finder to the source and set your CMAKE_MODULE_PATH accordingly http://lxr.kde.org/search?_filestring=&_string=Try+to+find+libX11-xcb Doing that would certainly be the most proper solution here. For the purpose of getting the missing thing show up in the summary though you could simply use add_feature_info where you'd use set_package_properties. Something like: add_feature_info("XCB-X11" XCB_FOUND "Required to pass style properties to native Windows on X11 Platform") probably would do the trick. It's less accurate than doing it via proper package handling but it will show up in the summary all the same. (In reply to Harald Sitter from comment #3) > It's available, you just have to add a custom cmake finder to the source and > set your CMAKE_MODULE_PATH accordingly > http://lxr.kde.org/search?_filestring=&_string=Try+to+find+libX11-xcb > Doing that would certainly be the most proper solution here. > > For the purpose of getting the missing thing show up in the summary though > you could simply use add_feature_info where you'd use > set_package_properties. > Something like: > add_feature_info("XCB-X11" XCB_FOUND "Required to pass style properties to > native Windows on X11 Platform") > probably would do the trick. It's less accurate than doing it via proper > package handling but it will show up in the summary all the same. Hey thanks for the hints ! I would rather not add a copy of FindXCB.cmake file, since it is already provided by ECM, and used by breeze (and oxygen) when compiled against KF5. The issue only happens when compiling against kde4, since we don't use ECM in this mode. So I guess I'll just add the add_feature_info line (and test). Sounds good to me. Git commit b14b203467bb8248e8e5cc68b9d4d152fb09784f by Hugo Pereira Da Costa. Committed on 21/05/2015 at 15:36. Pushed by hpereiradacosta into branch 'master'. Added feature summary for xcb and x11-xcb M +2 -0 kstyle/CMakeLists.txt http://commits.kde.org/breeze/b14b203467bb8248e8e5cc68b9d4d152fb09784f Git commit 25e1fbd0f9b35955c837dbe659d4ed661fef51dd by Hugo Pereira Da Costa. Committed on 21/05/2015 at 15:33. Pushed by hpereiradacosta into branch 'master'. Added feature summary for xcb and x11-xcb M +2 -0 CMakeLists.txt http://commits.kde.org/oxygen/25e1fbd0f9b35955c837dbe659d4ed661fef51dd |