aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2017-09-14 14:29:49 +0200
committerGravatar GitHub <noreply@github.com>2017-09-14 14:29:49 +0200
commit804bd6aa6ba0a6ff95ba2927b79aeb81dc02fe29 (patch)
tree0d390fe9f88fe395b3ff36df52b797b2b440a6c0 /templates
parent561f72f41847222df84f57c4773a501011c1ff5d (diff)
parentd6c4e937ce3f13151ec070ace6d73712f6d11f26 (diff)
Merge pull request #12501 from BusyJay/fix-cares-build
cmake: fix cares configuration
Diffstat (limited to 'templates')
-rw-r--r--templates/CMakeLists.txt.template3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/CMakeLists.txt.template b/templates/CMakeLists.txt.template
index f2ce9b5a90..567bd3b7f8 100644
--- a/templates/CMakeLists.txt.template
+++ b/templates/CMakeLists.txt.template
@@ -177,7 +177,8 @@
if(NOT CARES_ROOT_DIR)
set(CARES_ROOT_DIR <%text>${CMAKE_CURRENT_SOURCE_DIR}</%text>/third_party/cares/cares)
endif()
- set(CARES_STATIC ON)
+ set(CARES_SHARED OFF CACHE BOOL "disable shared library")
+ set(CARES_STATIC ON CACHE BOOL "link cares statically")
set(CARES_INCLUDE_DIR "<%text>${CMAKE_CURRENT_SOURCE_DIR}</%text>/third_party/cares/cares")
add_subdirectory(third_party/cares/cares)
if(TARGET c-ares)