Skip to content

Commit

Permalink
Fix c-ares CARES_EXTERN for static builds (#315)
Browse files Browse the repository at this point in the history
Co-authored-by: antores <[email protected]>
  • Loading branch information
antores and antores authored Jan 8, 2024
1 parent e33dd7d commit 2c25a74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ if (BUILD_C-ARES)
endif ()

if(HAVE_C-ARES)
if (NOT BUILD_SHARED_LIBS)
target_compile_definitions(${PROJECT_NAME} PRIVATE CARES_STATICLIB)
endif ()
target_link_libraries(${PROJECT_NAME} PRIVATE c-ares_lib)
set(TRANTOR_SOURCES
${TRANTOR_SOURCES}
Expand Down

0 comments on commit 2c25a74

Please sign in to comment.