Skip to content

Commit

Permalink
build: link libcommon when build with C
Browse files Browse the repository at this point in the history
  • Loading branch information
kanru committed Jan 1, 2024
1 parent 5bb1e3b commit e5876e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,9 @@ if(NOT WITH_RUST)
${SRC_DIR}/userphrase-hash.c
)
endif()
target_link_libraries(libchewing PRIVATE userphrase)
target_link_libraries(libchewing
PRIVATE common
PRIVATE userphrase)
if(BUILD_SHARED_LIBS AND MSVC)
target_compile_definitions(libchewing PRIVATE CHEWINGDLL_EXPORTS)
endif()
Expand Down

0 comments on commit e5876e3

Please sign in to comment.