Skip to content

Commit

Permalink
[CMAKE]: Compile Target Options for ESP32 Platform (#540)
Browse files Browse the repository at this point in the history
* fix(cmake): compile target options for ESP32 platform

* Fix missplaced not
  • Loading branch information
vinicius-trev authored Feb 1, 2025
1 parent 80e95fe commit 3a84394
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ if(BUILD_TESTING
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage")
endif()

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
if(ESP_PLATFORM)
add_compile_options(-Wall -Wextra)
elseif(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()

Expand Down

0 comments on commit 3a84394

Please sign in to comment.