carla
carla copied to clipboard
Setup: Update setup scripts when cmake 3.30 is released
Modify Setup scripts to install cmake 3.30.* or higer when is released due the next change fixes the download errors during build:
https://gitlab.kitware.com/cmake/cmake/-/merge_requests/9464#note_1514760
How to do it
- For ubuntu, we should modify the Setup.sh script to download and uncompress cmake 3.30.* instead cmake 3.28.*
- For windows, cmake is currently get form VisualStudio, so we have two options here:
- Just wait for VisualStudio updates the CMake version.
- Modify the Setup.bat script to download and install cmake 3.30.*
Why not just use the kitware apt repo to install the latest pre-built deb packages of cmake 3 instead of hard coding a specific version to be built from source? I'd hope that cmake 3 would be (mostly) backward compatible within the same major release (3), but I cannot find such guarantees within the documentation.
Would likely need to pin 3.x now that 4.x is out, e.g.
cat <<-EOF > /etc/apt/preferences.d/cmake
Package: cmake cmake-*
Pin: version 3.*
Pin-Priority: 1001
Origin: apt.kitware.com
EOF