handle STREQUAL when variable is not defined

This commit is contained in:
cooldome 2021-07-28 20:26:56 +01:00 committed by profound1987
parent 2d438d8ce0
commit 97760e3633
3 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@ list(APPEND GLOBAL_LD_FLAGS -Wall -Wchar-subscripts -std=c99)
list(APPEND GLOBAL_LD_FLAGS --specs=nano.specs)
if(${SUPPORT_FLOAT} STREQUAL "y")
if("${SUPPORT_FLOAT}" STREQUAL "y")
list(APPEND GLOBAL_LD_FLAGS -u _printf_float)
endif()