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 02c7c3885e
commit 3eecd43b31

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}")