File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -303,15 +303,9 @@ print_header("Configuring Python")
303303include (GNUInstallDirs)
304304
305305set (Python_POSTFIX "3" )
306- #if(WIN32)
307- # # No amount of fiddling seems to convince cmake to use the MSYS2 python
308- # # instead of whatever other nonsense is installed on github runners.
309- # # So we force it to an exact version which is not available except in
310- # # the MSYS2 environment. Sue me.
311- # find_package(Python 3.11.10 EXACT REQUIRED COMPONENTS Interpreter Development)
312- #else()
313- find_package (Python REQUIRED COMPONENTS Interpreter Development)
314- #endif()
306+ find_package (Python REQUIRED COMPONENTS Interpreter Development)
307+ set (PYTHON_EXECUTABLE ${Python_EXECUTABLE} CACHE INTERNAL "" )
308+ set (PYBIND11_PYTHON_VERSION ${Python_VERSION} CACHE INTERNAL "" )
315309find_package (pybind11 CONFIG)
316310if (NOT pybind11_FOUND)
317311 message (STATUS "Using included pybind11." )
You can’t perform that action at this time.
0 commit comments