From: Andrei Date: Thu, 8 Jun 2023 18:51:39 +0000 (-0400) Subject: cmake : export all symbols on windows when building shared library (#234) X-Git-Tag: upstream/0.0.1642~1413 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=f52d2a05cf8327baf6c0d49e7b231953179e03d3;p=pkg%2Fggml%2Fsources%2Fggml cmake : export all symbols on windows when building shared library (#234) Currently building ggml on windows as a shared library does not export all symbols by default. --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4c663934..24c9ee98 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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} )