Skip to content

Commit 26b1e60

Browse files
author
Cody Piersall
committed
Use CMake's own FindPythonLibs instead of vendored FindPythonLibsNew.
This enables easy cross-compilation and pybind11 doesn't have to carry around an old version of FindPythonLibs.
1 parent a54eab9 commit 26b1e60

File tree

3 files changed

+1
-204
lines changed

3 files changed

+1
-204
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ if (PYBIND11_INSTALL)
137137
set(CMAKE_SIZEOF_VOID_P ${_PYBIND11_CMAKE_SIZEOF_VOID_P})
138138
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake
139139
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake
140-
tools/FindPythonLibsNew.cmake
141140
tools/pybind11Tools.cmake
142141
DESTINATION ${PYBIND11_CMAKECONFIG_INSTALL_DIR})
143142

tools/FindPythonLibsNew.cmake

Lines changed: 0 additions & 202 deletions
This file was deleted.

tools/pybind11Tools.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if(NOT PYBIND11_PYTHON_VERSION)
1313
endif()
1414

1515
set(Python_ADDITIONAL_VERSIONS 3.9 3.8 3.7 3.6 3.5 3.4)
16-
find_package(PythonLibsNew ${PYBIND11_PYTHON_VERSION} REQUIRED)
16+
find_package(PythonLibs ${PYBIND11_PYTHON_VERSION} REQUIRED)
1717

1818
include(CheckCXXCompilerFlag)
1919
include(CMakeParseArguments)

0 commit comments

Comments
 (0)