Skip to content

Commit c082224

Browse files
Use Python::Module for dpctl_ext static lib to avoid libpython dependency
1 parent b111e49 commit c082224

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpctl_ext/tensor/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# THE POSSIBILITY OF SUCH DAMAGE.
2828
# *****************************************************************************
2929

30-
find_package(Python COMPONENTS Development)
30+
find_package(Python COMPONENTS Development.Module)
3131

3232
if(WIN32)
3333
if(${CMAKE_VERSION} VERSION_LESS "3.27")
@@ -74,7 +74,7 @@ target_include_directories(
7474
# ${Dpctl_INCLUDE_DIR}
7575
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/include
7676
)
77-
target_link_libraries(${_static_lib_trgt} PRIVATE pybind11::headers Python::Python)
77+
target_link_libraries(${_static_lib_trgt} PRIVATE pybind11::headers Python::Module)
7878
set_target_properties(${_static_lib_trgt} PROPERTIES POSITION_INDEPENDENT_CODE ON)
7979

8080
set(_py_trgts)

0 commit comments

Comments
 (0)