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.
15 lines
466 B
15 lines
466 B
3 years ago
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -79,7 +79,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 (NOT ${CMAKE_PLATFORM_NAME} STREQUAL "Windows" AND CMAKE_CXX_COMPILER_ID MATCHES GNU)
|
||
|
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Werror)
|
||
|
endif ()
|