Having an issue when trying to configure CMake in a project using SDL3_mixer. I've compiled and installed the latest SDL3 and SDL3_mixer (static libs) myself to the default system locations (Ubuntu 22.04) and I'm using find_package() to bring it into my project. I get the following error:
CMake Error at /usr/local/lib/cmake/SDL3_mixer/SDL3_mixerConfig.cmake:92 (include):
include could not find requested file:
PkgConfigHelper
Call Stack (most recent call first):
CMakeLists.txt:14 (find_package)
Just to make sure I wasn't doing something really silly, I made a simple example where the CMakeLists.txt includes (beyond the usual project boilerplate) this:
/usr/local/lib/cmake/SDL3_mixer/PkgConfigHelper.cmake exists - the problem is it's not finding it. If I go to the cited section of the code (SDL3_mixerConfig.cmake:92):
Is this ordering incorrect or is there an issue with CMakeFindDependencyMacro? If I move the include() statements to after CMAKE_MODULE_PATH is set, it works, since PkgConfigHelper.cmake is then included.
Having an issue when trying to configure CMake in a project using SDL3_mixer. I've compiled and installed the latest SDL3 and SDL3_mixer (static libs) myself to the default system locations (Ubuntu 22.04) and I'm using
find_package()
to bring it into my project. I get the following error:Just to make sure I wasn't doing something really silly, I made a simple example where the CMakeLists.txt includes (beyond the usual project boilerplate) this:
There's only one header, and one trivial object in a .cpp that don't really matter. In main() we've got:
/usr/local/lib/cmake/SDL3_mixer/PkgConfigHelper.cmake
exists - the problem is it's not finding it. If I go to the cited section of the code (SDL3_mixerConfig.cmake:92):Is this ordering incorrect or is there an issue with
CMakeFindDependencyMacro
? If I move theinclude()
statements to afterCMAKE_MODULE_PATH
is set, it works, since PkgConfigHelper.cmake is then included.