forked from lijiext/lammps
Ensure generated style headers are sorted
This commit is contained in:
parent
9ed6d0a9d1
commit
dbc0f0eea0
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue