Skip to content

Commit

Permalink
Fix trantor on win
Browse files Browse the repository at this point in the history
  • Loading branch information
an-tao committed Dec 16, 2023
1 parent 060e6cc commit b4a3fe3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -452,10 +452,10 @@ if (BUILD_SQLITE)
endif (BUILD_SQLITE)

if (BUILD_REDIS)
find_package(Hiredis)
find_package(Hiredis NAMES hiredis CONFIG REQUIRED)
if (Hiredis_FOUND)
add_definitions(-DUSE_REDIS)
target_link_libraries(${PROJECT_NAME} PRIVATE Hiredis_lib)
target_link_libraries(${PROJECT_NAME} PRIVATE hiredis::hiredis)
set(DROGON_SOURCES
${DROGON_SOURCES}
nosql_lib/redis/src/RedisClientImpl.cc
Expand Down
2 changes: 1 addition & 1 deletion cmake/templates/DrogonConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if(@COZ-PROFILER_FOUND@)
find_dependency(coz-profiler)
endif()
if(@Hiredis_FOUND@)
find_dependency(Hiredis)
find_dependency(hiredis CONFIG)
endif()
if(@yaml-cpp_FOUND@)
find_dependency(yaml-cpp)
Expand Down
2 changes: 1 addition & 1 deletion trantor

0 comments on commit b4a3fe3

Please sign in to comment.