Fix build under Windows when enable BUILD_SHARED_LIBS
This commit is contained in:
parent
2510c1831f
commit
0626417687
1 changed files with 4 additions and 0 deletions
|
@ -201,6 +201,10 @@ endif()
|
||||||
|
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
|
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
|
||||||
|
|
||||||
|
if (BUILD_SHARED_LIBS)
|
||||||
|
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (LLAMA_LTO)
|
if (LLAMA_LTO)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue