diff --git a/cmake/developer_package/message.cmake b/cmake/developer_package/message.cmake index fea169d50061b7..eb6a1af60035ad 100644 --- a/cmake/developer_package/message.cmake +++ b/cmake/developer_package/message.cmake @@ -10,14 +10,13 @@ if(UNIX AND ENABLE_ERROR_HIGHLIGHT) set(YELLOW "${ESC}[33;1m") list(GET ARGV 0 MessageType) + list(REMOVE_AT ARGV 0) if(MessageType STREQUAL FATAL_ERROR OR MessageType STREQUAL SEND_ERROR) - list(REMOVE_AT ARGV 0) _message(${MessageType} "${RED}${ARGV}${RESET}") elseif(MessageType STREQUAL WARNING) - list(REMOVE_AT ARGV 0) _message(${MessageType} "${YELLOW}${ARGV}${RESET}") else() - _message("${ARGV}") + _message(${MessageType} "${ARGV}") endif() endfunction() endif()