Does CMake support Python3?

前端 未结 3 1397
春和景丽
春和景丽 2021-01-08 00:31

I am not able to build a Python wrapper module for my C library via CMake and Swig for Python3. Everything works fine for Python2.x but it looks like CMake cannot find Pytho

3条回答
  •  春和景丽
    2021-01-08 01:12

    CMake 3.12 should help you with your issue. Citing the release notes:

    New “FindPython3” and “FindPython2” modules, as well as a new “FindPython” module, have been added to provide a new way to locate python environments.

提交回复
热议问题