We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11eb58e commit 2a40552Copy full SHA for 2a40552
cmake/Dependencies.cmake
@@ -1143,6 +1143,10 @@ message(STATUS "pybind11 include dirs: " "${pybind11_INCLUDE_DIRS}")
1143
add_library(pybind::pybind11 INTERFACE IMPORTED)
1144
target_include_directories(pybind::pybind11 SYSTEM INTERFACE ${pybind11_INCLUDE_DIRS})
1145
target_link_libraries(pybind::pybind11 INTERFACE python::python)
1146
+if(CMAKE_BUILD_TYPE MATCHES Debug AND WIN32)
1147
+ find_package(Python COMPONENTS Interpreter Development)
1148
+ target_link_libraries(pybind::pybind11 INTERFACE ${Python_LIBRARY_RELEASE})
1149
+endif()
1150
if(APPLE)
1151
target_link_options(pybind::pybind11 INTERFACE -undefined dynamic_lookup)
1152
endif()
0 commit comments