package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
844 B
28 lines
844 B
diff --git a/drogon_ctl/CMakeLists.txt b/drogon_ctl/CMakeLists.txt |
|
--- a/drogon_ctl/CMakeLists.txt |
|
+++ b/drogon_ctl/CMakeLists.txt |
|
@@ -55,6 +55,9 @@ |
|
if(WIN32) |
|
target_link_libraries(drogon_ctl PRIVATE ws2_32 Rpcrt4) |
|
endif(WIN32) |
|
+if(APPLE) |
|
+ target_link_libraries(drogon_ctl PRIVATE resolv) |
|
+endif() |
|
message(STATUS "bin:" ${INSTALL_BIN_DIR}) |
|
install(TARGETS drogon_ctl RUNTIME DESTINATION ${INSTALL_BIN_DIR}) |
|
if(WIN32) |
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt |
|
--- a/CMakeLists.txt |
|
+++ b/CMakeLists.txt |
|
@@ -76,7 +76,10 @@ |
|
else (BUILD_DROGON_SHARED) |
|
add_library(${PROJECT_NAME} STATIC) |
|
endif (BUILD_DROGON_SHARED) |
|
|
|
+if (APPLE) |
|
+ target_link_libraries(${PROJECT_NAME} PUBLIC resolv) |
|
+endif (APPLE) |
|
if (CMAKE_CXX_COMPILER_ID MATCHES GNU) |
|
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Werror) |
|
endif ()
|
|
|