From c6aa4c397b60b07e5a72b797433a3a77a92aeb26 Mon Sep 17 00:00:00 2001 From: Alberto Nidasio Date: Sat, 13 Apr 2024 16:26:59 +0200 Subject: [PATCH] Add `PARSING_FROM_IDE` compile definition to build the examples without modifying `miosix_settings.h` --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fae63b626..60ff4e0f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,8 @@ cmake_minimum_required(VERSION 3.25) project(MiosixExamples C CXX ASM) +add_compile_definitions($<$,$>:PARSING_FROM_IDE>) + add_subdirectory(miosix EXCLUDE_FROM_ALL) include(miosix/cmake/miosix_link_target.cmake)