Skip to content

Commit

Permalink
cmake : export all symbols on windows when building shared library (#234
Browse files Browse the repository at this point in the history
)

Currently building ggml on windows as a shared library does not export all symbols by default.
  • Loading branch information
abetlen authored Jun 8, 2023
1 parent 76cf2d6 commit f52d2a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ else()
endif()

if (BUILD_SHARED_LIBS)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)

target_link_libraries(${TARGET} PUBLIC
${CMAKE_DL_LIBS}
)
Expand Down

0 comments on commit f52d2a0

Please sign in to comment.