OGRECave/ogre

Rename FeatureSummary.cmake

Closed this issue · 0 comments

When I try to configure ogre, I get the following CMake error:

CMake Error at /usr/lib/cmake/Qt6/3rdparty/kwin/FindXKB.cmake:98 (set_package_properties):
  Unknown CMake command "set_package_properties".
Call Stack (most recent call first):
  /usr/lib64/cmake/Qt6Gui/Qt6GuiDependencies.cmake:43 (find_package)
  /usr/lib64/cmake/Qt6Gui/Qt6GuiConfig.cmake:50 (include)
  /usr/lib64/cmake/Qt6/Qt6Config.cmake:187 (find_package)
  CMake/Dependencies.cmake:287 (find_package)
  CMakeLists.txt:299 (include)

The reason is FeatureSummary is a CMake's module, and /usr/lib64/cmake/Qt6Gui/Qt6GuiDependencies.cmake has a line include(FeatureSummary). Since you have FeatureSummary.cmake in your project, it gets loaded instead of /usr/share/cmake/Modules/FeatureSummary.cmake. The solution is simple: just rename FeatureSummary.cmake in your project.