By default, CMake message() commands prints to stderr. IDEs like Eclipse show stderr output in red, which looks as if this is some kind of error. Use message(STATUS) instead.