fix: limit Windows all-in-one DLL exports (#611)

This commit is contained in:
feihongxu0824
2026-07-28 11:51:44 +08:00
committed by GitHub
parent d59d9a48f9
commit e2ea49d4ac
43 changed files with 781 additions and 211 deletions
+1
View File
@@ -78,6 +78,7 @@ add_library(zvec_c_api SHARED
set_target_properties(zvec_c_api PROPERTIES
OUTPUT_NAME "zvec_c_api"
POSITION_INDEPENDENT_CODE ON
WINDOWS_EXPORT_ALL_SYMBOLS OFF
# Hide all symbols by default, only export C API
CXX_VISIBILITY_PRESET hidden
VISIBILITY_INLINES_HIDDEN ON