diff --git a/src/torchcodec/_core/CMakeLists.txt b/src/torchcodec/_core/CMakeLists.txt index c79f62f3..206448f5 100644 --- a/src/torchcodec/_core/CMakeLists.txt +++ b/src/torchcodec/_core/CMakeLists.txt @@ -148,7 +148,7 @@ function(make_torchcodec_libraries target_link_options( ${pybind_ops_library_name} PUBLIC - "-undefined dynamic_lookup" + "LINKER:-undefined,dynamic_lookup" ) # Install all libraries.