I have found that, in order to successfully compile an app, I need a newer version of cmake than is currently installed on leap 15.3 (version 3.17). Tumbleweed has cmake version 3.22 and the app compiles fine in a tumblweed vm. Also, the latest version is cmake 3.22 and I have it downloaded from cmake website.
My questions is “how can I upgrade leap 15.3 cmake to version 3.22”?
I thought perhaps I could just remove (delete) the installed cmake from 15.3 and then install the newer version using yast-software using the downloaded cmake tar.gz file. But, removing cmake through yast software management also removes 66 additional packages that would wreak havoc with my system or cause lots of work to reinstall. Also the removed packages might not play well the newer cmake version after they were reinstalled
I’d like to upgrade cmake on 15.3 or have 2 cmakes where I could choose which one to use in a cmpilation. Of course, I can just use the tumbleweed vm to run this app but would like to get it compiled to run on lasp 15.3 rather than keep jumpilg around.
I have compiled the cmake source of the latest cmake (3.22) and installed into USER local directory. New cmake runs when whole path to USER cmake is provided on the commandline. Think I will try this for a while.
I am nervous about using “rpmbuild --rebuild xxxx.src.rpm” as suggested and installing into system files as root. Afraid that might affect the 66 dependent processes that were to be affected in removing the current system cmake. Also, I don’t know whether to give new system cmake from rpm install a different name than current cmake or over write current cmake.