escape messages to avoid CMake warning

Similar to ros/catkin#668. The error message should be escaped to avoid a CMake warning (with 2.8.12 and newer).

@tfoote @wjwwood Please review