This is a partial cherry-pick of 76c6f52e8 but modified to remove the earlier FreeBSD modifications introduced in 5c8ac69f7.
The problem was that the python3.8 pkgconfig moved the libdir variable from python3.8 to python3.8-embed so this needs to be checked first in cmake/FindPython.cmake
This is a partial cherry-pick of 76c6f52e8 but modified to remove the earlier FreeBSD modifications introduced in 5c8ac69f7.
The problem was that the python3.8 pkgconfig moved the libdir variable from python3.8 to python3.8-embed so this needs to be checked first in cmake/FindPytho n.cmake