Ensure generated style headers are sorted

This commit is contained in:
Richard Berger 2018-08-27 12:17:57 -04:00
parent 9ed6d0a9d1
commit dbc0f0eea0
1 changed files with 5 additions and 0 deletions

View File

@ -48,8 +48,13 @@ function(CreateStyleHeader path filename)
set(temp "")
if(ARGC GREATER 2)
list(REMOVE_AT ARGV 0 1)
set(header_list)
foreach(FNAME ${ARGV})
get_filename_component(FNAME ${FNAME} NAME)
list(APPEND header_list ${FNAME})
endforeach()
list(SORT header_list)
foreach(FNAME ${header_list})
set(temp "${temp}#include \"${FNAME}\"\n")
endforeach()
endif()