cmake: removed unnecessary reading of enums.hpp
libspec: removed discarding of const qualifier warning