1
0
mirror of https://github.com/fumiama/simple-dict.git synced 2026-06-21 03:10:56 +08:00

add mutex

This commit is contained in:
源文雨
2022-04-04 18:03:18 +08:00
parent fdeb306c9b
commit a1af0a7e8e
6 changed files with 152 additions and 149 deletions

View File

@@ -3,7 +3,7 @@ project(simple-dict-server C)
SET(CMAKE_BUILD_TYPE "Release")
add_definitions(-DLISTEN_ON_IPV6)
add_definitions(-DDEBUG)
#add_definitions(-DDEBUG)
IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
add_definitions("-DCPUBIT64")
ELSE()
@@ -23,12 +23,12 @@ add_executable(cfgwriter cfgwriter.c)
#add_executable(migrate migrate.c)
#add_executable(migratenew migratenew.c)
target_link_libraries(simple-dict-server scrypto spb pthread)
target_link_libraries(simple-dict-server scrypto libspb.a pthread)
target_link_libraries(simple-dict-client scrypto pthread)
target_link_libraries(cfgwriter spb)
target_link_libraries(cfgwriter libspb.a)
#target_link_libraries(migrate spb)
#target_link_libraries(migratenew spb)
#target_link_libraries(migrate libspb.a)
#target_link_libraries(migratenew libspb.a)
INSTALL(TARGETS simple-dict-server RUNTIME DESTINATION bin)
#INSTALL(TARGETS simple-dict-client RUNTIME DESTINATION bin)