diff options
author | Jay Lee <busyjaylee@gmail.com> | 2017-09-13 00:56:08 +0800 |
---|---|---|
committer | Jay Lee <busyjaylee@gmail.com> | 2017-09-13 00:56:08 +0800 |
commit | d6c4e937ce3f13151ec070ace6d73712f6d11f26 (patch) | |
tree | 5eea4d88dbbcc1acda8e132cb65fd9a7c4304c71 /templates/CMakeLists.txt.template | |
parent | bfcbad3b86c7912968dc8e64f2121c920dad4dfb (diff) |
update template
Diffstat (limited to 'templates/CMakeLists.txt.template')
-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 6adff889fe..cb6a82c380 100644 --- a/templates/CMakeLists.txt.template +++ b/templates/CMakeLists.txt.template @@ -179,7 +179,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) |