Bug 15640 - cmake uses incorrect python library
Summary: cmake uses incorrect python library
Status: NEW
Alias: None
Product: cwrap
Classification: Unclassified
Component: library (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal
Target Milestone: ---
Assignee: Andreas Schneider
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-02 20:45 UTC by Carson Gaspar
Modified: 2024-05-02 20:45 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carson Gaspar 2024-05-02 20:45:57 UTC
Contrary to the docs at https://cmake.org/cmake/help/latest/module/FindPythonLibs.html, src/python/python3/CMakeLists.txt calls find_package(PythonLibs 3) prior to calling find_package(PythonInterp 3), resulting in the wrong python libraries being used when using a non-default version of python.

Reversing the order of the lines in the file fixes the issue.