Probably you try to check an empty variable. The problem is $ENV{TnCfg}
because it is empty. CMake replaces the value of the variable names by their values, leading to
if (NOT (STREQUAL Linux_Build_Speech))
That's not valid and CMake wants an argument left of STREQUAL
.
Putting quotation-marks around the variable
if(NOT ("$ENV{TnCfg}" STREQUAL Linux_Build_Speech))
fixes the problem, because it gets replaced by "" leading to
if(NOT ("" STREQUAL Linux_Build_Speech))
and the empty string is a valid argument.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…