Fix build under Windows when enable BUILD_SHARED_LIBS

This commit is contained in:
Howard Su 2023-04-21 21:19:02 +08:00
parent 2510c1831f
commit 0626417687

View file

@ -201,6 +201,10 @@ endif()
if (MSVC)
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
if (BUILD_SHARED_LIBS)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
endif()
endif()
if (LLAMA_LTO)