I am trying to create a python3.12.8 environment with miniconda (v24.11.1) through an environment.yml. In this environment there is one package (pymimir) that needs to build a few C files. Pymimir uses C++20. I am used to installing the Visual Studio C++ build tools to use with CMAKE (v3.31.4) but VS uses C++14 and from all I can find online you can only change the compiler for specific projects not for the general compiler that CMAKE uses in external build processes. I can also only find instruction on how to use environment variables in your personal C project to influence CMAKE but none to influence a CMAKE build inside a python process.
Any advice on this?