[Bug 252277] cmake find_package(python3...) fails to get default python version

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Apr 24 09:46:35 BST 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252277

--- Comment #5 from Shane <FreeBSD at ShaneWare.Biz> ---
Created attachment 224394
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=224394&action=edit
simple cmake file for testing

The simplest setup is a CMakeLists.txt that only has the two python searches.
Multiple python versions need to be installed.

run `cmake .` in the same dir

The old style find package finds py36
-- Found PythonInterp: /usr/local/bin/python3.6 (found suitable version
"3.6.12", minimum required is "3.6") 
-- Found PythonLibs: /usr/local/lib/libpython3.6m.so (found suitable version
"3.6.12", minimum required is "3.6") 


The new variation finds py39
-- Found Python3: /usr/local/bin/python3.9 (found suitable version "3.9.0",
minimum required is "3.6") found components: Interpreter Development
Development.Module Development.Embed 


They should find the same default py version.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the kde-freebsd mailing list