Menu

#50 FindPythonInterp and FindPythonLibs modules are removed

v1.0_(example)
open
nobody
None
1
2024-03-20
2024-03-20
No

Building with cmake 3.28.3 and python 3.12.2 results in:

CMake Warning (dev) at lang/CMakeLists.txt:22 (FIND_PACKAGE):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.12.2", minimum required is "3.9") 
CMake Warning (dev) at lang/CMakeLists.txt:26 (FIND_PACKAGE):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.
-- Found PythonLibs: /usr/lib64/libpython3.12.so (found suitable version "3.12.2", minimum required is "3.9") 
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'distutils'

Discussion

Anonymous
Anonymous

Add attachments
Cancel