From 29138c91a3c4a78302b7d2afb76d1eca75ce0997 Mon Sep 17 00:00:00 2001 From: Sainnhe Park Date: Mon, 21 Mar 2022 10:22:27 +0800 Subject: [PATCH] Export compile commands --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c9364fd..260b63f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,9 @@ project(leetcode) # GoogleTest requires at least C++11 set(CMAKE_CXX_STANDARD 11) +# Export compile commands +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + include(FetchContent) fetchcontent_declare( googletest