cmake: that duplicate condition was used as NOT

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2016-11-07 15:50:45 +00:00
parent 2a2ca4370e
commit 8e58c9a6dd

View file

@ -12,7 +12,7 @@ FOREACH(file ${files})
OUTPUT_VARIABLE rm_out
RESULT_VARIABLE rm_retval
)
IF("${rm_retval}" STREQUAL 0)
IF(NOT "${rm_retval}" STREQUAL 0)
MESSAGE(FATAL_ERROR "Problem when removing \"${file}\": ${rm_out}")
ENDIF("${rm_retval}" STREQUAL 0)
ELSE(EXISTS "${file}")