I build wxWidgets and/or my application using:
When I try to use the CMake GUI to configure the project, it fails with the message shown below:
CMake Error at CMakeLists.txt:10 (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.
Configuring incomplete, errors occurred!
I am able to work around the issue by adding the cache entry suggested in the error message.
I launched the CMake GUI from within the "x64 Native Tools Command Prompt" that is installed with Visual Studio.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
This issue also affects those using vcpkg in an up-to-date version of Visual Studio. In that case, the workaround is not available.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Thanks for reporting this, I had no idea CMake 4.0 would break compatibility like this but, well, can't say that this is really very surprising.
If our makefiles already work with CMake 4.0, would it be just a matter of replace 3.31 with 4.0 in the cmake_minimum_required()
line in the top-level CMakeLists.txt
? If so, perhaps it would be worth redoing the source archives for 3.2.7 to include this fix...
Of course, if more extensive changes are required, then it's too late for this release (but hopefully not for 3.3.0).
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
3.2.7 should also be unaffected due to c82cec8. Kitware is not requiring that the minimum version be raised as the second paragraph of the error (previously warning) states, you just have to accept the newer policies which what the upper value of the range specifies.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Closed #25253 as completed.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Ah, good to know, thanks. If so, this has been already fixed and can be closed.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.