Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» (cmake): Turn off warnings for mbed source files
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed May 27, 2024
1 parent d365a46 commit 823e904
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmake/ToolchainGCCArmBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ set(MBED_COMPILE_OPTIONS "SHELL:-include \"${MBED_CMAKE_CONFIG_HEADERS_PATH}/mbe

# create the static library for the rest of the source files
add_library(mbed-os-static STATIC ${MBED_SOURCE_FILES})
target_compile_options(mbed-os-static PUBLIC ${MBED_COMPILE_OPTIONS})
target_compile_options(mbed-os-static
PUBLIC
${MBED_COMPILE_OPTIONS}
PRIVATE
-w
)
target_include_directories(mbed-os-static PUBLIC ${MBED_INCLUDE_DIRS})

# make sure linker script gets built before anything trying to use mbed-os
Expand Down

0 comments on commit 823e904

Please sign in to comment.