I am using
It is always going inside else function why ?
function(add_exe_name exe STAND2)
if(STAND2 EQUAL FALSE)
MESSAGE (FATAL_ERROR "Are bhi ${STAND} ${STAND2}")
SET(${exe}-exe "app-${exe}")
SET(${exe}-temp "app-${exe}")
else()
MESSAGE (FATAL_ERROR "${STAND} ${STAND2}")
SET(${exe}-exe "app-${exe}")
SET(${exe}-temp "${exe}")
endif(STAND2 EQUAL FALSE)
endfunction(add_exe_name)
It is not taking care about value of STAND2
Replace
if(STAND2 EQUAL FALSE)withif(NOT STAND2).