I think this must be a simple question.
When using cmake with Visual Studio from the command line, it is recommended to run cmake from the Visual Studio terminal, where all environment variables are already set up correctly for the compiler etc.
Now the issues is, I have a recent version of cmake installed to e.g. c:\cmake-current\ and have put this at the beginning of my user PATH.
But in the Visual Studio terminal, the directories from Visual Studio are put before that, including the directory where the cmake which is coming with Visual Studio is located, which is version 3.12 I think.
So, in the Visual Studio terminal, the cmake which is found is automatically the old one coming with Visual Studio, and not the current one I’d like to use.
Is there a good way to keep “my” current cmake at the beginning of the PATH ?