Skip to content

Commit

Permalink
Fix build on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Apr 24, 2024
1 parent 678e48f commit fcaf851
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ file(GLOB SOURCE_FILES "src/addons.cpp")

add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES} ${CMAKE_JS_SRC})
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "" SUFFIX ".node")
target_link_libraries(${PROJECT_NAME} ${CMAKE_JS_LIB})

# static link llama and ggml
target_link_libraries(${PROJECT_NAME} PUBLIC llama ggml common)
target_link_libraries(${PROJECT_NAME} ${CMAKE_JS_LIB} llama ggml common)

string(REPLACE "amd64" "x64" ARCH ${ARCH})
string(REPLACE "x86_64" "x64" ARCH ${ARCH})
Expand Down

0 comments on commit fcaf851

Please sign in to comment.