Calling find_package with Python and then PythonLibs was finding the python exec from conda but the libs and includes in my system, which was causing all kinds of weird errors.
find_package(PythonLibs) was deprecated in CMake 3.12, find_package(Python) supersedes it. The current CMakeLists requires 3.20.
I modified CMakeLists.txt to only use find_package(Python) for the exec and the development libraries.
Calling find_package with Python and then PythonLibs was finding the python exec from conda but the libs and includes in my system, which was causing all kinds of weird errors. find_package(PythonLibs) was deprecated in CMake 3.12, find_package(Python) supersedes it. The current CMakeLists requires 3.20. I modified CMakeLists.txt to only use find_package(Python) for the exec and the development libraries.