https://bugs.kde.org/show_bug.cgi?id=441266

--- Comment #2 from Jan Blackquill <uhh...@gmail.com> ---
Projects need to depend on ECM and adjust the CMAKE_MODULE_PATH like so, in
order to depend on KWindowSystem:

find_package(ECM REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})

If they don't, the build fails with this error:

ERROR: CMake Error at
/usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
  By not providing "FindXCB.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "XCB", but
  CMake did not find one.

  Could not find a package configuration file provided by "XCB" with any of
  the following names:

    XCBConfig.cmake
    xcb-config.cmake

  Add the installation prefix of "XCB" to CMAKE_PREFIX_PATH or set "XCB_DIR"
  to a directory containing one of the above files.  If "XCB" provides a
  separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
 
/home/jpontaoski/kde/usr/lib64/cmake/KF5WindowSystem/KF5WindowSystemConfig.cmake:36
(find_dependency)
  CMakeLists.txt:11 (find_package)

This is because FindXCB is provided by ECM.

Before the named commits, projects using KWindowSystem didn't need to have the
above ECM snippet.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to