diff options
author | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2017-09-14 14:29:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-14 14:29:49 +0200 |
commit | 804bd6aa6ba0a6ff95ba2927b79aeb81dc02fe29 (patch) | |
tree | 0d390fe9f88fe395b3ff36df52b797b2b440a6c0 /templates | |
parent | 561f72f41847222df84f57c4773a501011c1ff5d (diff) | |
parent | d6c4e937ce3f13151ec070ace6d73712f6d11f26 (diff) |
Merge pull request #12501 from BusyJay/fix-cares-build
cmake: fix cares configuration
Diffstat (limited to 'templates')
-rw-r--r-- | templates/CMakeLists.txt.template | 3 |
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) |