diff options
| author | hathach <[email protected]> | 2023-06-02 13:27:18 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-06-02 13:27:18 +0700 |
| commit | fcf77914546496d88d5915223095d93bb63c67fe (patch) | |
| tree | 2169b5f5378afb1b3286d92b978ff563bbe0d70b /examples | |
| parent | e7090c75148820ff3a4ad60c718684c46c954c18 (diff) | |
add IAR support for G0 with cmake
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/device/net_lwip_webserver/CMakeLists.txt | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/examples/device/net_lwip_webserver/CMakeLists.txt b/examples/device/net_lwip_webserver/CMakeLists.txt index 5225f7c42..2c21aa52b 100644 --- a/examples/device/net_lwip_webserver/CMakeLists.txt +++ b/examples/device/net_lwip_webserver/CMakeLists.txt @@ -77,12 +77,16 @@ target_sources(${PROJECT} PUBLIC ) # due to warnings from other net source, we need to prevent error from some of the warnings options -target_compile_options(${PROJECT} PUBLIC - -Wno-error=null-dereference - -Wno-error=conversion - -Wno-error=sign-conversion - -Wno-error=sign-compare - ) +if (CMAKE_C_COMPILER_ID STREQUAL "GNU") + target_compile_options(${PROJECT} PUBLIC + -Wno-error=null-dereference + -Wno-error=conversion + -Wno-error=sign-conversion + -Wno-error=sign-compare + ) +elseif (CMAKE_C_COMPILER_ID STREQUAL "IAR") + +endif () # Configure compilation flags and libraries for the example... see the corresponding function # in hw/bsp/FAMILY/family.cmake for details. |
