Setting up the build environment with cmake .. generates the following error:
Using cmake .. -DCMAKE_POLICY_VERSION_MINIMUM=3.5 (as suggested) seems to work as a short-term solution, but overrides the compatibility check.
The root cause appears to be that CMake 4.0.0 no longer supports features deprecated in CMake 3.5 or earlier.
Assuming that the project doesn't use any deprecated features, the long-term fix appears to be changing:
cmake_minimum_required(VERSION 3.0 FATAL_ERROR) in CMakeLists.txt to:
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
I'd be happy to submit a PR if that helps.
Cheers.
Setting up the build environment with
cmake ..generates the following error:Using
cmake .. -DCMAKE_POLICY_VERSION_MINIMUM=3.5(as suggested) seems to work as a short-term solution, but overrides the compatibility check.The root cause appears to be that CMake 4.0.0 no longer supports features deprecated in CMake 3.5 or earlier.
Assuming that the project doesn't use any deprecated features, the long-term fix appears to be changing:
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)in CMakeLists.txt to:cmake_minimum_required(VERSION 3.5 FATAL_ERROR)I'd be happy to submit a PR if that helps.
Cheers.