Skip to content

Commit 2575c87

Browse files
committed
Add property to export all symbols to create shared library on MSVC.
1 parent 82facd4 commit 2575c87

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ foreach(TARGET ${AV_TARGETS})
4242
target_link_libraries(${TARGET} PRIVATE ws2_32)
4343
endif()
4444

45+
if(MSVC and TYPE STREQUAL "SHARED")
46+
set_target_properties(${TARGET} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
47+
endif()
48+
4549
add_library(${AV_NAMESPACE}::${TARGET} ALIAS ${TARGET})
4650
endforeach()
4751

0 commit comments

Comments
 (0)