Fixed error in cmake.  Refs #7948.