From 79c1056553e5150cbdb12e52a19603fd33c3e517 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 22 Jul 2021 01:09:45 -0700 Subject: Generate the compilation database through CMake Use an Emacs directory-local variable to specify to ccls where the compilation directory lives, tell CMake to generate the compilation database, and remove bear from the environment. Add clang to the environment for clang-format. --- clox/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clox') diff --git a/clox/CMakeLists.txt b/clox/CMakeLists.txt index fb44875..aa285e1 100644 --- a/clox/CMakeLists.txt +++ b/clox/CMakeLists.txt @@ -2,4 +2,6 @@ cmake_minimum_required(VERSION 2.19) project(Lox C) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + add_subdirectory(src) -- cgit v1.3-2-g0d8e