Skip to content

Commit 01aafaa

Browse files
committed
Fix build failure on Python 3.14t without --enable-shared
1 parent 8bbce65 commit 01aafaa

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/torchcodec/_core/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,10 @@ function(make_torchcodec_libraries
185185
)
186186
set(custom_ops_dependencies
187187
${core_library_name}
188-
${Python3_LIBRARIES}
189188
)
189+
if(WIN32)
190+
list(APPEND custom_ops_dependencies ${Python3_LIBRARIES})
191+
endif()
190192
make_torchcodec_sublibrary(
191193
"${custom_ops_library_name}"
192194
SHARED

0 commit comments

Comments
 (0)