luau icon indicating copy to clipboard operation
luau copied to clipboard

CMake fails to build due to too low of a minimum version

Open lunarlattice0 opened this issue 9 months ago • 1 comments

CMake fails with:

  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.

As a workaround, I set cmake_minimum_required(VERSION 3.0) to cmake_minimum_required(VERSION 3.5).

I am currently building with CMake 4.0

lunarlattice0 avatar Apr 02 '25 19:04 lunarlattice0

This is a known issue for modern versions of CMake. The release this week will update our minimum spec to CMake 3.10, and you can use -DCMAKE_POLICY_VERSION_MINIMUM=3.5 or a manual update in the mean time.

aatxe avatar Apr 02 '25 20:04 aatxe

The minimum CMake version has been raised to 3.10.

vegorov-rbx avatar Dec 14 '25 13:12 vegorov-rbx