cmake: fix issue with checking build process args

This commit is contained in:
Renz Christian Bagaporo 2019-08-21 12:00:55 +08:00
parent f62798cb8b
commit 3f1ec39a8d

View file

@ -295,7 +295,7 @@ endmacro()
#
macro(__build_set_default var default)
set(_var __${var})
if(${_var})
if(NOT "${_var}" STREQUAL "")
idf_build_set_property(${var} "${${_var}}")
else()
idf_build_set_property(${var} "${default}")