You are probably trying to check for an empty variable. The task is $ENV{TnCfg} because it is empty. CMake replaces the value of variable names with their values, which leads to
if (NOT (STREQUAL Linux_Build_Speech))
This is not valid, and CMake wants to leave the argument from STREQUAL .
Putting quotes around a variable
if(NOT ("$ENV{TnCfg}" STREQUAL Linux_Build_Speech))
fixes the problem because it is replaced by "", leading to
if(NOT ("" STREQUAL Linux_Build_Speech))
and an empty string is a valid argument.
usr1234567 Sep 27 '16 at 19:48 2016-09-27 19:48
source share