Skip to content

Commit 91c08cc

Browse files
committed
Make: Expose nk_shared symbols for Emscripten builds
Relates to ashvardanian/NumKong@482e4fd
1 parent d3314c0 commit 91c08cc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,10 @@ if (USEARCH_USE_NUMKONG)
391391
CACHE BOOL "" FORCE
392392
)
393393
add_subdirectory(numkong)
394+
395+
if (TARGET nk_shared)
396+
set_target_properties(nk_shared PROPERTIES ENABLE_EXPORTS ON)
397+
endif ()
394398
endif ()
395399

396400
# Must be called before "add_subdirectory()". See

0 commit comments

Comments
 (0)