You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an issue with cmake_minimum_required. Check your CMakeLists.txt files (there's multiple) and change the parameter from any older version like 3.x to 3.5. It should resolve the issue.
I had the same problem and applied the changes in the pull request, but when I selected BUILD_PYTHON to On in CMake, PyBind11 starting giving similar error, because it has "cmake_minimum_required(VERSION 2.8.12)"
Similarly, in 18 other places in the project, there are similar cmake_minimum_required(VERSION X.X.X) below 3.5
After replacing all of these instances, you get another error:
Found PythonInterp: C:/-----/-----/.pyenv/pyenv-win/shims/python3.7
CMake Error at 3rdparty/pybind11/tools/FindPythonLibsNew.cmake:95 (message):
Python config failure:
Activity
greeshiee commentedon Apr 2, 2025
This is an issue with cmake_minimum_required. Check your CMakeLists.txt files (there's multiple) and change the parameter from any older version like 3.x to 3.5. It should resolve the issue.
Owenyen35441653 commentedon Apr 8, 2025
I have the same question.
avacado-a commentedon Jul 3, 2025
I had the same problem and applied the changes in the pull request, but when I selected BUILD_PYTHON to On in CMake, PyBind11 starting giving similar error, because it has "cmake_minimum_required(VERSION 2.8.12)"
Similarly, in 18 other places in the project, there are similar cmake_minimum_required(VERSION X.X.X) below 3.5
After replacing all of these instances, you get another error:
Found PythonInterp: C:/-----/-----/.pyenv/pyenv-win/shims/python3.7
CMake Error at 3rdparty/pybind11/tools/FindPythonLibsNew.cmake:95 (message):
Python config failure:
Call Stack (most recent call first):
3rdparty/pybind11/tools/pybind11Tools.cmake:16 (find_package)
3rdparty/pybind11/CMakeLists.txt:33 (include)
I do not believe this is a related error, but it may be.
kdxu11 commentedon Jul 30, 2025
cmake v3.28.6 works