cmake CXX_HAS_WERROR examples

robotology/yarp cmake/YarpSystemCheck.cmake :282

check_cxx_compiler_flag("-Werror" CXX_HAS_WERROR)