Relative Content

Tag Archive for pythoncmakecondaminicondafind-package

Cmake refuses to find the proper version of python in conda

I’m trying to make cmake (v 3.22) find python 3.9 that’s set up in conda, but it really wants to use the default python 3.10 that’s on the system by default (Ubuntu 22). The code in CMakeLists.txt that tries to find python is as follows: