Skip to content

Commit

Permalink
Add PARSING_FROM_IDE compile definition to build the examples witho…
Browse files Browse the repository at this point in the history
…ut modifying `miosix_settings.h`
  • Loading branch information
NidasioAlberto committed Apr 13, 2024
1 parent 80f9481 commit c6aa4c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ cmake_minimum_required(VERSION 3.25)

project(MiosixExamples C CXX ASM)

add_compile_definitions($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:PARSING_FROM_IDE>)

add_subdirectory(miosix EXCLUDE_FROM_ALL)
include(miosix/cmake/miosix_link_target.cmake)

Expand Down

0 comments on commit c6aa4c3

Please sign in to comment.