From 30b3bdfd56403b308fe977e7a8f45b4266348970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20de=20Giessen?= Date: Wed, 9 Oct 2024 18:57:17 +0200 Subject: [PATCH] Generate compile commands file used by IDE's (#1159) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniƫl van de Giessen --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3f77f7408..54f6e70be 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,8 @@ cmake_minimum_required(VERSION 3.13) include(CMakePrintHelpers) - - +# enable compile commands for use by IDE autocompletion +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # initialize the SDK based on PICO_SDK_PATH # note: this must happen before project()