From 2917f46ded09ad83d2567171751df16c03366cbb Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Sun, 15 Jul 2018 08:01:50 +0200 Subject: [PATCH] CMake Build System: Export compile commands for IDEs that can use it, e.g. VS Code --- ports/unix/example_app/CMakeLists.txt | 2 ++ ports/win32/example_app/CMakeLists.txt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ports/unix/example_app/CMakeLists.txt b/ports/unix/example_app/CMakeLists.txt index fb2b4a0..4bf13df 100644 --- a/ports/unix/example_app/CMakeLists.txt +++ b/ports/unix/example_app/CMakeLists.txt @@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.8) project(example_app C) +set (CMAKE_EXPORT_COMPILE_COMMANDS ON) + set(LWIP_CONTRIB_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../..) set(LWIP_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../../../lwip) diff --git a/ports/win32/example_app/CMakeLists.txt b/ports/win32/example_app/CMakeLists.txt index b88d0db..fb5f9d7 100644 --- a/ports/win32/example_app/CMakeLists.txt +++ b/ports/win32/example_app/CMakeLists.txt @@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.8) project(example_app C) +set (CMAKE_EXPORT_COMPILE_COMMANDS ON) + set(LWIP_CONTRIB_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../..) set(LWIP_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../../../lwip)