Back to the original question, just to be clear. The right way to do this is with the set_source_files_properties command: set_source_files_properties(<SRC> PROPERTIES LANGUAGE CXX) -Bill