openal-soft icon indicating copy to clipboard operation
openal-soft copied to clipboard

CMake error when finding OpelAL in config mode

Open petk opened this issue 4 months ago • 4 comments

When doing:

find_package(OpenAL CONFIG)

The following error is emitted in CMake 4+:

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/OpenAL/OpenALConfig.cmake:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
Call Stack (most recent call first):
  CMakeLists.txt:20 (find_package)

Minimum version needs to be bumped here: https://github.com/kcat/openal-soft/blob/9d695bd3b603e8427b3a40f0c27708bf56a9ecac/OpenALConfig.cmake.in#L1 (or better yet, that cmake_minimum_required() should be removed from the config file).

petk avatar Aug 04 '25 19:08 petk