fix incorrect check for NO_WARN_RWX_SEGMENTS_SUPPORTED. Use "NOT DEFINED" instead of "NOT VAR" to properly detect whether the variable is unset.

This commit is contained in:
Tobi
2026-03-29 12:43:41 +02:00
parent a2cca43290
commit dbfaebf6cb

View File

@ -141,7 +141,7 @@ if (NOT FAMILY STREQUAL rp2040)
endif()
endif()
if (NOT NO_WARN_RWX_SEGMENTS_SUPPORTED)
if (NOT DEFINED NO_WARN_RWX_SEGMENTS_SUPPORTED)
set(NO_WARN_RWX_SEGMENTS_SUPPORTED 1)
endif()