aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2017-04-05 00:14:32 +0200
committerSimon Warta <[email protected]>2017-04-07 09:10:13 +0200
commit315e8ea730265d0cf8f00d0de46d31c410b609b2 (patch)
tree3b403ed5cf09bf14d541a66396263ec7d2284333 /configure.py
parent8c38a8b35846ca36b83138d92397190168cd5b14 (diff)
Sort source files in cmake output
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.py b/configure.py
index e3404f1ea..f73c64063 100755
--- a/configure.py
+++ b/configure.py
@@ -1472,13 +1472,15 @@ class CmakeGenerator(object):
@staticmethod
def _generate_target_sources_list(fd, target_name, target):
fd.write('set(%s\n' % target_name)
- for source in target['sources']:
+ sorted_sources = sorted(target['sources'].keys())
+ for source in sorted_sources:
fd.write(' ${CMAKE_CURRENT_LIST_DIR}%s%s\n' % (os.sep, os.path.normpath(source)))
fd.write(')\n\n')
@staticmethod
def _generate_target_source_files_isa_properties(fd, target):
- for source in target['sources']:
+ sorted_sources = sorted(target['sources'].keys())
+ for source in sorted_sources:
joined_isa_flags = ' '.join(target['sources'][source]['isa_flags'])
if joined_isa_flags:
fd.write('set_source_files_properties(${CMAKE_CURRENT_LIST_DIR}%s%s PROPERTIES COMPILE_FLAGS %s)\n'