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 9573fc2 commit 963590eCopy full SHA for 963590e
src/torchcodec/_core/CMakeLists.txt
@@ -71,11 +71,21 @@ function(make_torchcodec_sublibrary
71
)
72
endif()
73
74
- target_link_libraries(
75
- ${library_name}
76
- PUBLIC
77
- ${library_dependencies}
78
- )
+ # For the core library, use PRIVATE to prevent FFmpeg dependencies from leaking
+ # For other libraries, use PUBLIC so they can properly link to their dependencies
+ if(${library_name} MATCHES ".*_core[0-9]+$")
+ target_link_libraries(
+ ${library_name}
79
+ PRIVATE
80
+ ${library_dependencies}
81
+ )
82
+ else()
83
84
85
+ PUBLIC
86
87
88
+ endif()
89
90
endfunction()
91
0 commit comments