summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2023-06-02 17:07:28 +0700
committerGitHub <[email protected]>2023-06-02 17:07:28 +0700
commitc7686f8d5e98660137ef176d35bc8a82f63675f3 (patch)
tree7735439589bf79eac95e179c270b922a37900831 /examples
parent002cb9289d7e8f7efa807356aa8af7f4c67583a8 (diff)
parent2016ad72f3dad74ee752943ab29c687a82687255 (diff)
Merge pull request #2092 from hathach/stm32g4
Stm32g4
Diffstat (limited to 'examples')
-rw-r--r--examples/device/net_lwip_webserver/CMakeLists.txt16
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.