diff options
| author | Ha Thach <[email protected]> | 2023-06-02 17:07:28 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-06-02 17:07:28 +0700 |
| commit | c7686f8d5e98660137ef176d35bc8a82f63675f3 (patch) | |
| tree | 7735439589bf79eac95e179c270b922a37900831 /examples | |
| parent | 002cb9289d7e8f7efa807356aa8af7f4c67583a8 (diff) | |
| parent | 2016ad72f3dad74ee752943ab29c687a82687255 (diff) | |
Merge pull request #2092 from hathach/stm32g4
Stm32g4
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. |
