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/23 23:55:36 UTC

[incubator-kvrocks] branch unstable updated: Set CMAKE_EXPORT_COMPILE_COMMANDS to ON as a default behavior (#649)

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 4f92734  Set CMAKE_EXPORT_COMPILE_COMMANDS to ON as a default behavior (#649)
4f92734 is described below

commit 4f927341f8c91943d8a6fe9b898f5007a9170274
Author: Twice <tw...@gmail.com>
AuthorDate: Fri Jun 24 07:55:31 2022 +0800

    Set CMAKE_EXPORT_COMPILE_COMMANDS to ON as a default behavior (#649)
---
 CMakeLists.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 65f7bbc..03fa765 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -30,6 +30,8 @@ if(ENABLE_ASAN AND ENABLE_TSAN)
     message(FATAL_ERROR "ASan and TSan cannot be used at the same time")
 endif()
 
+set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
+
 # GLIBC < 2.17 should explict specify the real time library when use clock_*
 find_library(REALTIME_LIB rt)
 if (REALTIME_LIB)