]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
cmake : export all symbols on windows when building shared library (#234)
authorAndrei <redacted>
Thu, 8 Jun 2023 18:51:39 +0000 (14:51 -0400)
committerGitHub <redacted>
Thu, 8 Jun 2023 18:51:39 +0000 (21:51 +0300)
Currently building ggml on windows as a shared library does not export all symbols by default.

src/CMakeLists.txt

index 4c663934a3bffe0e9da94214a2b6f5332610152a..24c9ee9864ce80c209ae42bb1a129505871f6749 100644 (file)
@@ -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}
         )