I am getting the following error while installing rstudio-desktop with the command:
yay -S rstudio-desktop
Building SOCI...
CMake Error at CMakeLists.txt:13 (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.
/build/rstudio-desktop/src/build/_deps/yaml-cpp-src/src/emitterutils.cpp:221:11: error: ‘uint16_t’ was not declared in this scope
221 | std::pair<uint16_t, uint16_t> EncodeUTF16SurrogatePair(int codePoint) {
| ^~~~~~~~
/build/rstudio-desktop/src/build/_deps/yaml-cpp-src/src/emitterutils.cpp:13:1: note: ‘uint16_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
12 | #include "yaml-cpp/null.h"
+++ |+#include <cstdint>
13 | #include "yaml-cpp/ostream_wrapper.h"