FindCEGUI.cmake Doesn't Work on Debian
Posted: Mon Jun 13, 2016 15:20
The project I'm working on is going to be using CEGUI for the GUI of our game (not surprising, CEGUI seems to be the only good GUI framework in C++ out there), and our project uses the CMake build system. My comrade uses a Fedora machine while I use Debian GNU/Linux, on his machine the FindCEGUI.cmake file (taken from the CEGUI repo) works just fine, but on mine I get a huge error :
I've managed to go through the FindCEGUI.cmake file and locate the root of the problem with my very minimal knowledge of CMake (compared the the beast which is this CMake file). Apparently it's coming from when it searches for the include directory, because it only searches for `cegui-${CEGUI_VERSION_MAJOR_DEFAULT}', while on debian it would require it to be referring to the major version (which never changes), the minor version, and the patch version (because whoever is maintaining CEGUI for Debian wants to get on my nerve ).
I would fix this myself, except this is way past my knowledge of CMake. So I wanted to know if someone could help me fix this issue so we can contribute it back to the repo so more Debian users don't have to go through this. I know that I could specify where they are manually (which is what I'll do for now), but I don't think that that's a long-term solution.
Here's a link to the FindCEGUI.cmake file I've been using: https://bitbucket.org/cegui/cegui/raw/d ... EGUI.cmake
Thanks!
Code: Select all
-- Looking for CEGUI...
-- Could not locate CEGUI
CMake Error at cmake_modules/FindCEGUI.cmake:247 (message):
Required library CEGUI not found! Install the library (including dev
packages) and try again. If the library is already installed, set the
missing variables manually in cmake.
Call Stack (most recent call first):
cmake_modules/FindCEGUI.cmake:490 (findpkg_finish)
cmake_modules/DMUXClient.cmake:49 (find_package)
CMakeLists.txt:10 (include)
I've managed to go through the FindCEGUI.cmake file and locate the root of the problem with my very minimal knowledge of CMake (compared the the beast which is this CMake file). Apparently it's coming from when it searches for the include directory, because it only searches for `cegui-${CEGUI_VERSION_MAJOR_DEFAULT}', while on debian it would require it to be referring to the major version (which never changes), the minor version, and the patch version (because whoever is maintaining CEGUI for Debian wants to get on my nerve ).
I would fix this myself, except this is way past my knowledge of CMake. So I wanted to know if someone could help me fix this issue so we can contribute it back to the repo so more Debian users don't have to go through this. I know that I could specify where they are manually (which is what I'll do for now), but I don't think that that's a long-term solution.
Here's a link to the FindCEGUI.cmake file I've been using: https://bitbucket.org/cegui/cegui/raw/d ... EGUI.cmake
Thanks!