removed the incorrect <identifier> from endif(<identifier>) since this identifier is no longer necessary from CMake >= 2.6.