Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0dec788

Browse files
committed
fix: Fix missing deprecated symbols on windows with missing LLAMA_API prefix in header file
1 parent 5a635f4 commit 0dec788

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,15 @@ if (LLAMA_BUILD)
9696
set(GGML_METAL_EMBED_LIBRARY "ON" CACHE BOOL "ggml: embed metal library" FORCE)
9797
endif()
9898

99+
99100
add_subdirectory(vendor/llama.cpp)
101+
102+
if (WIN32)
103+
if (TARGET llama)
104+
set_target_properties(llama PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
105+
endif()
106+
endif()
107+
100108
llama_cpp_python_install_target(llama)
101109
llama_cpp_python_install_target(ggml)
102110

0 commit comments

Comments
 (0)