From 1f8c866408dfa5ebae73142e80a268f479ac5f0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Yusuf=20Sar=C4=B1g=C3=B6z?= Date: Mon, 6 Nov 2023 03:27:03 +0300 Subject: [PATCH] attempt to fix build on Windows --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 350bf7217..7e00688d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -687,7 +687,7 @@ if (BUILD_SHARED_LIBS) # are not used. This changes that. if (WIN32) set_target_properties(llama PROPERTIES - LINK_FLAGS "/WHOLEARCHIVE" + LINK_FLAGS "/WHOLEARCHIVE /FORCE:MULTIPLE" ) elseif (APPLE) set_target_properties(llama PROPERTIES