Skip to content

Commit

Permalink
chore: quieten CMake unused variable warning (#5785)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfeerick authored Jan 15, 2025
1 parent 6ab0ae7 commit 795cc35
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions radio/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,9 @@ if(NATIVE_BUILD)
return()
endif()

# Silence CMake 2.8+ warning about unused variable (ie. if specified when not relevant)
set(ignore_USE_UNSUPPORTED_TOOLCHAIN "${USE_UNSUPPORTED_TOOLCHAIN}")

if(NOT USE_UNSUPPORTED_TOOLCHAIN AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL "14.2.1")
message("CPP Compiler: ${CMAKE_CXX_COMPILER}, version ${CMAKE_CXX_COMPILER_VERSION}")
message(FATAL_ERROR "Only Arm GNU Toolchain version 14.2.rel1 is supported!!")
Expand Down

0 comments on commit 795cc35

Please sign in to comment.