You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kvrocks.apache.org by ti...@apache.org on 2022/06/04 02:55:51 UTC

[incubator-kvrocks] branch unstable updated: Build static lib for glog (#618)

This is an automated email from the ASF dual-hosted git repository.

tison pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/incubator-kvrocks.git


The following commit(s) were added to refs/heads/unstable by this push:
     new 65778a1  Build static lib for glog (#618)
65778a1 is described below

commit 65778a1f0dab97dcaac01801e41afdfc2cf92691
Author: Twice <i...@twice.moe>
AuthorDate: Sat Jun 4 10:55:46 2022 +0800

    Build static lib for glog (#618)
---
 CMakeLists.txt   | 2 ++
 cmake/glog.cmake | 1 +
 2 files changed, 3 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 00a68db..fd20464 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -45,6 +45,8 @@ if(NOT DISABLE_JEMALLOC)
     list(APPEND EXTERNAL_LIBS PRIVATE jemalloc)
 endif()
 
+set(BUILD_SHARED_LIBS OFF CACHE BOOL "do not build shared libs by default")
+
 include(cmake/gtest.cmake)
 include(cmake/glog.cmake)
 include(cmake/snappy.cmake)
diff --git a/cmake/glog.cmake b/cmake/glog.cmake
index 0552a86..2c6f2bc 100644
--- a/cmake/glog.cmake
+++ b/cmake/glog.cmake
@@ -29,4 +29,5 @@ include(cmake/utils.cmake)
 FetchContent_MakeAvailableWithArgs(glog
   WITH_GFLAGS=OFF
   WITH_GTEST=OFF
+  BUILD_SHARED_LIBS=OFF
 )