luau
luau copied to clipboard
CMake fails to build due to too low of a minimum version
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
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.
The minimum CMake version has been raised to 3.10.