diff --git a/CMakeLists.txt b/CMakeLists.txt index d1609f8e820..3e3db3493e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,7 @@ file(GLOB_RECURSE HEADERS torchvision/csrc/vision.h) file(GLOB_RECURSE MODELS_HEADERS torchvision/csrc/models/*.h) file(GLOB_RECURSE MODELS_SOURCES torchvision/csrc/models/*.h torchvision/csrc/models/*.cpp) +set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) add_library (${PROJECT_NAME} SHARED ${MODELS_SOURCES}) target_link_libraries(${PROJECT_NAME} "${TORCH_LIBRARIES}")