cmake: Strip comments from else()/endif()

Authored by heikobecker on Dec 14 2017, 7:58 PM.